summaryrefslogtreecommitdiffstats
path: root/apps/gui/line.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2014-03-03 16:17:27 +0100
committerThomas Martitz <kugel@rockbox.org>2014-03-03 16:34:36 +0100
commit00434be0f129eb72e3a0bd99deed2923c760cd5e (patch)
treea9c0332dd6d5b8b1e5ce6489e9c1e9e6000da447 /apps/gui/line.c
parent05a67d021c8fbb10b2654f8378b549901dd4c520 (diff)
downloadrockbox-00434be0f129eb72e3a0bd99deed2923c760cd5e.tar.gz
rockbox-00434be0f129eb72e3a0bd99deed2923c760cd5e.tar.bz2
rockbox-00434be0f129eb72e3a0bd99deed2923c760cd5e.zip
Fix greyscale and mono builds.
Change-Id: I511376eb42d1109dbe10d4fc5aa849b21d9f7582
Diffstat (limited to 'apps/gui/line.c')
-rw-r--r--apps/gui/line.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gui/line.c b/apps/gui/line.c
index 4a51c6e307..2b1bec2c6b 100644
--- a/apps/gui/line.c
+++ b/apps/gui/line.c
@@ -318,12 +318,12 @@ static void style_line(struct screen *display,
{
int sep_height = MIN(line->separator_height, height);
display->set_drawmode(DRMODE_FG);
-#if LCD_DEPTH > 1
+#ifdef HAVE_LCD_COLOR
display->set_foreground(global_settings.list_separator_color);
#endif
display->fillrect(x, y + height - sep_height, width, sep_height);
bar_height -= sep_height;
-#if LCD_DEPTH > 1
+#ifdef HAVE_LCD_COLOR
display->set_foreground(global_settings.fg_color);
#endif
}