summaryrefslogtreecommitdiff
path: root/apps/gui/wps.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-08-10 14:15:03 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-08-10 14:15:03 +0000
commit489962dc4e34cc89c2bf9d124feb74954eb92c68 (patch)
treeef53892652379e43dde6dd013a2ad5081a718d25 /apps/gui/wps.c
parenta547fc1b351f98f620ba61e240ebbf0729727e1c (diff)
downloadrockbox-489962dc4e34cc89c2bf9d124feb74954eb92c68.tar.gz
rockbox-489962dc4e34cc89c2bf9d124feb74954eb92c68.zip
Fix FS#11526 - %Vf(<hex>) was acceptable on grey remotes with colour main
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27768 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/wps.c')
-rw-r--r--apps/gui/wps.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/apps/gui/wps.c b/apps/gui/wps.c
index 508446ab98..6ab016f88d 100644
--- a/apps/gui/wps.c
+++ b/apps/gui/wps.c
@@ -655,10 +655,14 @@ static void gwps_enter_wps(void)
655#if LCD_DEPTH > 1 655#if LCD_DEPTH > 1
656 if (display->depth > 1) 656 if (display->depth > 1)
657 { 657 {
658 struct viewport *vp = &find_viewport(VP_DEFAULT_LABEL, 658 struct skin_viewport *svp = find_viewport(VP_DEFAULT_LABEL,
659 false, gwps->data)->vp; 659 false, gwps->data);
660 vp->fg_pattern = display->get_foreground(); 660 if (svp)
661 vp->bg_pattern = display->get_background(); 661 {
662 struct viewport *vp = &svp->vp;
663 vp->fg_pattern = display->get_foreground();
664 vp->bg_pattern = display->get_background();
665 }
662 } 666 }
663#endif 667#endif
664 /* make the backdrop actually take effect */ 668 /* make the backdrop actually take effect */