diff options
author | Jonas Häggqvist <rasher@rasher.dk> | 2009-03-19 17:43:53 +0000 |
---|---|---|
committer | Jonas Häggqvist <rasher@rasher.dk> | 2009-03-19 17:43:53 +0000 |
commit | cd34de693cc629405cd61132a6429f0421c7566d (patch) | |
tree | 09fc6722bbbf1077a5871430fa4b90e0fcb5d612 /apps | |
parent | 71471062eb278301434993a7678578b8533cf914 (diff) | |
download | rockbox-cd34de693cc629405cd61132a6429f0421c7566d.tar.gz rockbox-cd34de693cc629405cd61132a6429f0421c7566d.zip |
Invert albumart when LCD Mode is set to inverse.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20357 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/recorder/albumart.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/recorder/albumart.c b/apps/recorder/albumart.c index e0977f738a..327f4dfe5c 100644 --- a/apps/recorder/albumart.c +++ b/apps/recorder/albumart.c | |||
@@ -285,10 +285,15 @@ void draw_album_art(struct gui_wps *gwps, int handle_id, bool clear) | |||
285 | if (!clear) | 285 | if (!clear) |
286 | { | 286 | { |
287 | /* Draw the bitmap */ | 287 | /* Draw the bitmap */ |
288 | gwps->display->set_drawmode(DRMODE_FG); | ||
289 | gwps->display->bitmap_part((fb_data*)bmp->data, 0, 0, bmp->width, | 288 | gwps->display->bitmap_part((fb_data*)bmp->data, 0, 0, bmp->width, |
290 | x, y, width, height); | 289 | x, y, width, height); |
291 | gwps->display->set_drawmode(DRMODE_SOLID); | 290 | #ifdef HAVE_LCD_INVERT |
291 | if (global_settings.invert) { | ||
292 | gwps->display->set_drawmode(DRMODE_COMPLEMENT); | ||
293 | gwps->display->fillrect(x, y, width, height); | ||
294 | gwps->display->set_drawmode(DRMODE_SOLID); | ||
295 | } | ||
296 | #endif | ||
292 | } | 297 | } |
293 | else | 298 | else |
294 | { | 299 | { |