mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-22 18:02:05 +00:00
ANDROID: Fix off-by-one when clipping mouse coords
This commit is contained in:
parent
430c462031
commit
b45640c47b
@ -251,8 +251,8 @@ void OSystem_Android::clipMouse(Common::Point &p) {
|
||||
else
|
||||
tex = _game_texture;
|
||||
|
||||
p.x = CLIP(p.x, int16(0), int16(tex->width()));
|
||||
p.y = CLIP(p.y, int16(0), int16(tex->height()));
|
||||
p.x = CLIP(p.x, int16(0), int16(tex->width() - 1));
|
||||
p.y = CLIP(p.y, int16(0), int16(tex->height() - 1));
|
||||
}
|
||||
|
||||
void OSystem_Android::scaleMouse(Common::Point &p, int x, int y,
|
||||
|
Loading…
Reference in New Issue
Block a user