summaryrefslogtreecommitdiff
path: root/apps/gui
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2012-03-01 18:38:57 +0100
committerFrank Gevaerts <frank@gevaerts.be>2012-03-01 18:40:59 +0100
commit4fbbbf13609883b48cc4557c23701c55ec0f1f45 (patch)
treead80f44f98c60b6529d09db2db3051055ff426ac /apps/gui
parentdc572fbde30469a692670ab972b5a9490c2671a4 (diff)
Make %LC and %LR always have predictable and usable values.
%LC is now 1 for non-tiled list items (instead of undefined) %LC and %LR are now -1 in non-list contexts. Change-Id: Ib7090429fa95528bd141d3d7ca95fd917b25b96e
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/bitmap/list-skinned.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/gui/bitmap/list-skinned.c b/apps/gui/bitmap/list-skinned.c
index 38004dc732..95430ae278 100644
--- a/apps/gui/bitmap/list-skinned.c
+++ b/apps/gui/bitmap/list-skinned.c
@@ -57,6 +57,8 @@ void skinlist_set_cfg(enum screen_type screen,
screens[screen].scroll_stop(&listcfg[screen]->selected_item_vp.vp);
listcfg[screen] = cfg;
current_list = NULL;
+ current_column = -1;
+ current_row = -1;
}
}
@@ -225,6 +227,7 @@ bool skinlist_draw(struct screen *display, struct gui_synclist *list)
}
else
{
+ current_column = 1;
current_row = cur_line;
skin_viewport->vp.x = parent->x + original_x;
skin_viewport->vp.y = parent->y + original_y +
@@ -257,6 +260,8 @@ bool skinlist_draw(struct screen *display, struct gui_synclist *list)
}
}
}
+ current_column = -1;
+ current_row = -1;
display->set_viewport(parent);
display->update_viewport();
current_drawing_line = list->selected_item;