diff options
-rw-r--r-- | apps/gui/bitmap/list.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c index 7ad59b979b..b4ecd79c40 100644 --- a/apps/gui/bitmap/list.c +++ b/apps/gui/bitmap/list.c | |||
@@ -625,8 +625,8 @@ unsigned gui_synclist_do_touchscreen(struct gui_synclist * gui_list) | |||
625 | { | 625 | { |
626 | short x, y; | 626 | short x, y; |
627 | const enum screen_type screen = SCREEN_MAIN; | 627 | const enum screen_type screen = SCREEN_MAIN; |
628 | struct viewport *info_vp = sb_skin_get_info_vp(screen); | 628 | struct viewport *parent = gui_list->parent[screen]; |
629 | const int button = action_get_touchscreen_press_in_vp(&x, &y, info_vp); | 629 | const int button = action_get_touchscreen_press_in_vp(&x, &y, parent); |
630 | const int list_start_item = gui_list->start_item[screen]; | 630 | const int list_start_item = gui_list->start_item[screen]; |
631 | const int line_height = font_get(gui_list->parent[screen]->font)->height; | 631 | const int line_height = font_get(gui_list->parent[screen]->font)->height; |
632 | const struct viewport *list_text_vp = &list_text[screen]; | 632 | const struct viewport *list_text_vp = &list_text[screen]; |
@@ -652,7 +652,7 @@ unsigned gui_synclist_do_touchscreen(struct gui_synclist * gui_list) | |||
652 | return ACTION_NONE; | 652 | return ACTION_NONE; |
653 | } | 653 | } |
654 | 654 | ||
655 | /* x and y are relative to info_vp */ | 655 | /* x and y are relative to parent */ |
656 | if (gui_list->callback_get_item_icon != NULL) | 656 | if (gui_list->callback_get_item_icon != NULL) |
657 | icon_width += get_icon_width(screen); | 657 | icon_width += get_icon_width(screen); |
658 | if (show_cursor) | 658 | if (show_cursor) |