summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2008-09-07 20:22:47 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2008-09-07 20:22:47 +0000
commit3d0f01c0f7ebad28a795b65e1ddcb707d945d3a3 (patch)
treed143ef07f1c0f5f5a31eac951f96408a80f09275
parent3c1e9ca55892ae342c9efb396cd9f49f3d403a5a (diff)
downloadrockbox-3d0f01c0f7ebad28a795b65e1ddcb707d945d3a3.tar.gz
rockbox-3d0f01c0f7ebad28a795b65e1ddcb707d945d3a3.tar.bz2
rockbox-3d0f01c0f7ebad28a795b65e1ddcb707d945d3a3.zip
fix red
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18442 a1c6a512-1295-4272-9138-f99709370657
-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)