diff options
author | Peter D'Hoye <peter.dhoye@gmail.com> | 2008-09-07 20:22:47 +0000 |
---|---|---|
committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2008-09-07 20:22:47 +0000 |
commit | 3d0f01c0f7ebad28a795b65e1ddcb707d945d3a3 (patch) | |
tree | d143ef07f1c0f5f5a31eac951f96408a80f09275 | |
parent | 3c1e9ca55892ae342c9efb396cd9f49f3d403a5a (diff) | |
download | rockbox-3d0f01c0f7ebad28a795b65e1ddcb707d945d3a3.tar.gz 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.c | 4 |
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) | |||
340 | struct screen *display = &screens[SCREEN_MAIN]; | 340 | struct screen *display = &screens[SCREEN_MAIN]; |
341 | int pressed_slider; | 341 | int pressed_slider; |
342 | char buf[2]; | 342 | char buf[2]; |
343 | 343 | ||
344 | if (button == BUTTON_NONE) | 344 | if (button == BUTTON_NONE) |
345 | return ACTION_NONE; | 345 | return ACTION_NONE; |
346 | /* same logic as draw_screen */ | 346 | /* same logic as draw_screen */ |
@@ -375,7 +375,7 @@ static int touchscreen_slider(struct rgb_pick *rgb, int *selected_slider) | |||
375 | return ACTION_STD_CANCEL; | 375 | return ACTION_STD_CANCEL; |
376 | } | 376 | } |
377 | y -= text_top; | 377 | y -= text_top; |
378 | pressed_slider = y/display->char_height; | 378 | pressed_slider = y/display->getcharheight(); |
379 | if (pressed_slider > (display_three_rows?2:0)) | 379 | if (pressed_slider > (display_three_rows?2:0)) |
380 | { | 380 | { |
381 | if (button == BUTTON_REL) | 381 | if (button == BUTTON_REL) |