ANDROID: Fix off-by-one when clipping mouse coords
This commit is contained in:
parent
430c462031
commit
b45640c47b
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue