ANDROID: Fix sign compare warnings

This commit is contained in:
Le Philousophe
2026-04-12 17:26:00 +02:00
parent d36af04757
commit 066bc346ef
2 changed files with 3 additions and 3 deletions
@@ -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;
}
+2 -2
View File
@@ -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;
}