From f1e3cb3b58be6588a1af4d1e5eb7b3ae62e2748f Mon Sep 17 00:00:00 2001 From: Themaister Date: Sat, 20 Apr 2013 09:01:38 +0200 Subject: [PATCH] Fix compiler warning. --- input/dinput.c | 3 +-- input/sdl_input.c | 3 +-- input/x11_input.c | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) 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;