summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2012-03-15 23:03:33 +1100
committerJonathan Gordon <rockbox@jdgordon.info>2012-03-15 23:03:33 +1100
commit182a6c80ba4418f0244a28c932a2b36c61defd0b (patch)
tree71dc4862c2f803c36bf0cecae14f26894552f4f7
parent014a08cabb856b2360419aac404744029ee4748c (diff)
downloadrockbox-182a6c80ba4418f0244a28c932a2b36c61defd0b.tar.gz
rockbox-182a6c80ba4418f0244a28c932a2b36c61defd0b.tar.bz2
rockbox-182a6c80ba4418f0244a28c932a2b36c61defd0b.zip
Fix compile errors
Change-Id: Ic985bf57da04847bff716ee41db8f107100ff95b
-rw-r--r--apps/gui/skin_engine/skin_parser.c2
-rw-r--r--apps/gui/skin_engine/skin_render.c4
2 files changed, 6 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c
index 49373eca32..d0466de812 100644
--- a/apps/gui/skin_engine/skin_parser.c
+++ b/apps/gui/skin_engine/skin_parser.c
@@ -2058,6 +2058,8 @@ static int skin_element_callback(struct skin_element* element, void* data)
sb_skin_has_title(curr_screen);
#endif
break;
+#endif
+#if (LCD_DEPTH > 1) || (defined(HAVE_REMOTE_LCD) && (LCD_REMOTE_DEPTH > 1))
case SKIN_TOKEN_DRAWRECTANGLE:
function = parse_drawrectangle;
break;
diff --git a/apps/gui/skin_engine/skin_render.c b/apps/gui/skin_engine/skin_render.c
index 7ceb0bce17..0a1759d91a 100644
--- a/apps/gui/skin_engine/skin_render.c
+++ b/apps/gui/skin_engine/skin_render.c
@@ -191,11 +191,15 @@ static bool do_non_text_tags(struct gui_wps *gwps, struct skin_draw_info *info,
else
#endif
{
+#if LCD_DEPTH > 1
unsigned backup = vp->fg_pattern;
vp->fg_pattern = rect->start_colour;
+#endif
gwps->display->fillrect(rect->x, rect->y, rect->width,
rect->height);
+#if LCD_DEPTH > 1
vp->fg_pattern = backup;
+#endif
}
}
break;