summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/gui/color_picker.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gui/color_picker.c b/apps/gui/color_picker.c
index eb4490035d..d344317c5e 100644
--- a/apps/gui/color_picker.c
+++ b/apps/gui/color_picker.c
@@ -340,7 +340,7 @@ static int touchscreen_slider(struct rgb_pick *rgb, int *selected_slider)
struct screen *display = &screens[SCREEN_MAIN];
int pressed_slider;
char buf[2];
-
+
if (button == BUTTON_NONE)
return ACTION_NONE;
/* same logic as draw_screen */
@@ -375,7 +375,7 @@ static int touchscreen_slider(struct rgb_pick *rgb, int *selected_slider)
return ACTION_STD_CANCEL;
}
y -= text_top;
- pressed_slider = y/display->char_height;
+ pressed_slider = y/display->getcharheight();
if (pressed_slider > (display_three_rows?2:0))
{
if (button == BUTTON_REL)