summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2011-09-13 13:20:17 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2011-09-13 13:20:17 +0000
commitb6271900b00548d98a121ded09ee51645b2d0f9b (patch)
tree93f3ea3cd1fa9113be4d9dd7581deb5b408eb1dd
parent8a0db7bf3476b37eebacf26816b21d7c03074fd1 (diff)
downloadrockbox-b6271900b00548d98a121ded09ee51645b2d0f9b.tar.gz
rockbox-b6271900b00548d98a121ded09ee51645b2d0f9b.zip
Make sure to set the current lcd backdrop id so the buflib move callback can reset the correct backdrop
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30515 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/gui/skin_engine/skin_backdrops.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_backdrops.c b/apps/gui/skin_engine/skin_backdrops.c
index 7721e2d3d7..4701f51b19 100644
--- a/apps/gui/skin_engine/skin_backdrops.c
+++ b/apps/gui/skin_engine/skin_backdrops.c
@@ -181,9 +181,13 @@ void skin_backdrop_show(int backdrop_id)
181 backdrops[backdrop_id].name[2] == '\0')) 181 backdrops[backdrop_id].name[2] == '\0'))
182 { 182 {
183 screens[screen].backdrop_show(NULL); 183 screens[screen].backdrop_show(NULL);
184 current_lcd_backdrop[screen] = -1;
184 } 185 }
185 else if (backdrops[backdrop_id].buffer) 186 else if (backdrops[backdrop_id].buffer)
187 {
186 screens[screen].backdrop_show(backdrops[backdrop_id].buffer); 188 screens[screen].backdrop_show(backdrops[backdrop_id].buffer);
189 current_lcd_backdrop[screen] = backdrop_id;
190 }
187} 191}
188 192
189void skin_backdrop_unload(int backdrop_id) 193void skin_backdrop_unload(int backdrop_id)