summaryrefslogtreecommitdiffstats
path: root/apps/plugins/rockboy/sys_rockbox.c
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2018-04-10 14:13:35 +0200
committerMarcin Bukat <marcin.bukat@gmail.com>2018-06-12 10:31:15 +0200
commit1af78b99d90629cfc90805b18270afaa486ddb50 (patch)
tree66501f75a2965a02cda453176ecf14157da6662c /apps/plugins/rockboy/sys_rockbox.c
parentfbaa97496f9717d7cf45456c47ce3e271da29e28 (diff)
downloadrockbox-1af78b99d90629cfc90805b18270afaa486ddb50.tar.gz
rockbox-1af78b99d90629cfc90805b18270afaa486ddb50.tar.bz2
rockbox-1af78b99d90629cfc90805b18270afaa486ddb50.zip
Agptek Rocker: fix rockboy pallete
Contributed by Aapo Tahkola. Change-Id: Ibee14d4f307b2198c5c47f9593734bd5d31d379b
Diffstat (limited to 'apps/plugins/rockboy/sys_rockbox.c')
-rw-r--r--apps/plugins/rockboy/sys_rockbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/rockboy/sys_rockbox.c b/apps/plugins/rockboy/sys_rockbox.c
index 31bab1c478..3a1f3c6760 100644
--- a/apps/plugins/rockboy/sys_rockbox.c
+++ b/apps/plugins/rockboy/sys_rockbox.c
@@ -261,7 +261,7 @@ void vid_init(void)
fb.enabled=1;
#if defined(HAVE_LCD_COLOR)
-#if LCD_DEPTH == 24
+#if LCD_DEPTH >= 24
fb.cc[0].r = 0; /* 8-8 (wasted bits on red) */
fb.cc[0].l = 16; /* this is the offset to the R bits (24-8) */
fb.cc[1].r = 0; /* 8-6 (wasted bits on green) */