1
0
Fork 0
forked from len0rd/rockbox

Fix touchscreen behavior in time&date screen.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30725 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2011-10-07 22:30:09 +00:00
parent 5783505b99
commit 2a04202ffa

View file

@ -625,8 +625,8 @@ unsigned gui_synclist_do_touchscreen(struct gui_synclist * gui_list)
{ {
short x, y; short x, y;
const enum screen_type screen = SCREEN_MAIN; const enum screen_type screen = SCREEN_MAIN;
struct viewport *info_vp = sb_skin_get_info_vp(screen); struct viewport *parent = gui_list->parent[screen];
const int button = action_get_touchscreen_press_in_vp(&x, &y, info_vp); const int button = action_get_touchscreen_press_in_vp(&x, &y, parent);
const int list_start_item = gui_list->start_item[screen]; const int list_start_item = gui_list->start_item[screen];
const int line_height = font_get(gui_list->parent[screen]->font)->height; const int line_height = font_get(gui_list->parent[screen]->font)->height;
const struct viewport *list_text_vp = &list_text[screen]; const struct viewport *list_text_vp = &list_text[screen];
@ -652,7 +652,7 @@ unsigned gui_synclist_do_touchscreen(struct gui_synclist * gui_list)
return ACTION_NONE; return ACTION_NONE;
} }
/* x and y are relative to info_vp */ /* x and y are relative to parent */
if (gui_list->callback_get_item_icon != NULL) if (gui_list->callback_get_item_icon != NULL)
icon_width += get_icon_width(screen); icon_width += get_icon_width(screen);
if (show_cursor) if (show_cursor)