diff --git a/input/dinput.c b/input/dinput.c index fda81f4c78..c7e66f23c9 100644 --- a/input/dinput.c +++ b/input/dinput.c @@ -255,8 +255,7 @@ static int16_t dinput_pointer_state(struct dinput_input *di, unsigned index, uns res_y = res_screen_y; } - bool inside = (res_x >= -0x7fff) && (res_x <= 0x7fff) && - (res_y >= -0x7fff) && (res_y <= 0x7fff); + bool inside = (res_x >= -0x7fff) && (res_y >= -0x7fff); if (!inside) return 0; diff --git a/input/sdl_input.c b/input/sdl_input.c index efc70bacdf..e15ae5be2d 100644 --- a/input/sdl_input.c +++ b/input/sdl_input.c @@ -138,8 +138,7 @@ static int16_t sdl_pointer_device_state(sdl_input_t *sdl, unsigned index, unsign res_y = res_screen_y; } - bool inside = (res_x >= -0x7fff) && (res_x <= 0x7fff) && - (res_y >= -0x7fff) && (res_y <= 0x7fff); + bool inside = (res_x >= -0x7fff) && (res_y >= -0x7fff); if (!inside) return 0; diff --git a/input/x11_input.c b/input/x11_input.c index f44d5047fd..26e252d717 100644 --- a/input/x11_input.c +++ b/input/x11_input.c @@ -127,8 +127,7 @@ static int16_t x_pointer_state(x11_input_t *x11, unsigned index, unsigned id, bo res_y = res_screen_y; } - bool inside = (res_x >= -0x7fff) && (res_x <= 0x7fff) && - (res_y >= -0x7fff) && (res_y <= 0x7fff); + bool inside = (res_x >= -0x7fff) && (res_y >= -0x7fff); if (!inside) return 0;