From 54d99945f2d0993e95fd996626b35698e13bee4a Mon Sep 17 00:00:00 2001 From: Totoo Date: Tue, 14 Oct 2025 03:03:28 +0200 Subject: [PATCH] fix touch calib on prf (#2816) --- firmware/application/apps/ui_touch_calibration.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/firmware/application/apps/ui_touch_calibration.hpp b/firmware/application/apps/ui_touch_calibration.hpp index 18b848ace..db5a0941f 100644 --- a/firmware/application/apps/ui_touch_calibration.hpp +++ b/firmware/application/apps/ui_touch_calibration.hpp @@ -81,13 +81,13 @@ class TouchCalibrationView : public View { Color::black()}; Image image_calibrate_1{ - {240 - 32 - 16, (320 - 16) / 2 - 16, 32, 32}, + {screen_width - 32 - 16, (screen_height - 16) / 2 - 16, 32, 32}, &bitmap_target_calibrate, Color::white(), Color::black()}; Image image_calibrate_2{ - {240 / 2 - 16, (320 - 16) - 32 - 16, 32, 32}, + {screen_width / 2 - 16, (screen_height - 16) - 32 - 16, 32, 32}, &bitmap_target_calibrate, Color::white(), Color::black()}; @@ -99,13 +99,13 @@ class TouchCalibrationView : public View { Color::black()}; Image image_verify_1{ - {240 - 32 - 16, (320 - 16) / 2 - 16, 32, 32}, + {screen_width - 32 - 16, (screen_height - 16) / 2 - 16, 32, 32}, &bitmap_target_verify, Color::white(), Color::black()}; Image image_verify_2{ - {240 / 2 - 16, (320 - 16) - 32 - 16, 32, 32}, + {screen_width / 2 - 16, (screen_height - 16) - 32 - 16, 32, 32}, &bitmap_target_verify, Color::white(), Color::black()}; @@ -131,11 +131,11 @@ class TouchCalibrationView : public View { "Calibration failed. Retry?"}; Button button_cancel{ - {40, 200, 64, 24}, + {40, 200, UI_POS_WIDTH(8), 24}, "Cancel"}; Button button_ok{ - {136, 200, 64, 24}, + {136, 200, UI_POS_WIDTH(8), 24}, "OK"}; void on_frame_sync();