Fix compiler warning.

This commit is contained in:
Themaister 2013-04-20 09:01:38 +02:00
parent ff49f28236
commit f1e3cb3b58
3 changed files with 3 additions and 6 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;