mirror of
https://github.com/scummvm/scummvm.git
synced 2026-05-21 05:40:43 +00:00
ANDROID: Fix sign compare warnings
This commit is contained in:
@@ -265,7 +265,7 @@ void AndroidGraphicsManager::syncVirtkeyboardState(bool virtkeybd_on) {
|
||||
}
|
||||
|
||||
void AndroidGraphicsManager::touchControlInitSurface(const Graphics::ManagedSurface &surf) {
|
||||
if (_touchcontrols->getWidth() == surf.w && _touchcontrols->getHeight() == surf.h) {
|
||||
if (_touchcontrols->getWidth() == (uint)surf.w && _touchcontrols->getHeight() == (uint)surf.h) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -155,8 +155,8 @@ TouchControls::FunctionId TouchControls::getFunctionId(int x, int y) {
|
||||
// Exclude areas reserved for system
|
||||
if ((x < JNI::gestures_insets[0] * SCALE_FACTOR_FXP) ||
|
||||
(y < JNI::gestures_insets[1] * SCALE_FACTOR_FXP) ||
|
||||
(x >= _screen_width - JNI::gestures_insets[2] * SCALE_FACTOR_FXP) ||
|
||||
(y >= _screen_height - JNI::gestures_insets[3] * SCALE_FACTOR_FXP)) {
|
||||
(x >= (int)_screen_width - JNI::gestures_insets[2] * SCALE_FACTOR_FXP) ||
|
||||
(y >= (int)_screen_height - JNI::gestures_insets[3] * SCALE_FACTOR_FXP)) {
|
||||
return kFunctionNone;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user