git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18442 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Peter D'Hoye 2008-09-07 20:22:47 +00:00
parent 3c1e9ca558
commit 3d0f01c0f7

View file

@ -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)