summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/grey_scroll.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-03-25 19:43:08 +0000
committerJens Arnold <amiconn@rockbox.org>2008-03-25 19:43:08 +0000
commit9a7978aeabadc50c6049c5cd150b572ec9bd9e87 (patch)
tree2d22815d61277d495957ced0d1b25ceb19adac08 /apps/plugins/lib/grey_scroll.c
parent38ed90128439bd7cd20038a69032f1f3eddaca04 (diff)
downloadrockbox-9a7978aeabadc50c6049c5cd150b572ec9bd9e87.tar.gz
rockbox-9a7978aeabadc50c6049c5cd150b572ec9bd9e87.zip
Cabbiev2 gigabeat background: reduce WPS backdrop filesize by storing it as 24 bit BMP instead of unnecessary 32 bit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16802 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib/grey_scroll.c')
-rw-r--r--apps/plugins/lib/grey_scroll.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugins/lib/grey_scroll.c b/apps/plugins/lib/grey_scroll.c
index 12a27daf23..ba790b035f 100644
--- a/apps/plugins/lib/grey_scroll.c
+++ b/apps/plugins/lib/grey_scroll.c
@@ -191,7 +191,8 @@ void grey_ub_scroll_up(int count)
191 _grey_info.fg_brightness : 191 _grey_info.fg_brightness :
192 _grey_info.bg_brightness]; 192 _grey_info.bg_brightness];
193 193
194#if LCD_PIXELFORMAT == VERTICAL_PACKING 194#if (LCD_PIXELFORMAT == VERTICAL_PACKING) \
195 || (LCD_PIXELFORMAT == VERTICAL_INTERLEAVED)
195 if (count & _GREY_BMASK) 196 if (count & _GREY_BMASK)
196 { 197 {
197 /* Scrolling by fractional blocks - move pixel wise. */ 198 /* Scrolling by fractional blocks - move pixel wise. */
@@ -262,7 +263,8 @@ void grey_ub_scroll_down(int count)
262 _grey_info.fg_brightness : 263 _grey_info.fg_brightness :
263 _grey_info.bg_brightness]; 264 _grey_info.bg_brightness];
264 265
265#if LCD_PIXELFORMAT == VERTICAL_PACKING 266#if (LCD_PIXELFORMAT == VERTICAL_PACKING) \
267 || (LCD_PIXELFORMAT == VERTICAL_INTERLEAVED)
266 if (count & _GREY_BMASK) 268 if (count & _GREY_BMASK)
267 { 269 {
268 /* Scrolling by fractional blocks - move pixel wise. */ 270 /* Scrolling by fractional blocks - move pixel wise. */