mirror of
https://github.com/libretro/RetroArch
synced 2025-02-20 06:40:18 +00:00
Fix compiler warning.
This commit is contained in:
parent
ff49f28236
commit
f1e3cb3b58
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user