diff options
author | Marcin Bukat <marcin.bukat@gmail.com> | 2015-01-12 12:02:24 +0100 |
---|---|---|
committer | Marcin Bukat <marcin.bukat@gmail.com> | 2015-01-12 12:02:24 +0100 |
commit | 9ffd9327e339ee9028654000497525b62e826652 (patch) | |
tree | 2ec951353c3d5b7c927b97a448a55e8d7e9ae521 /apps/plugins/lib/grey_core.c | |
parent | bbd7d1dba39ab1a89b4cc0c18352e35349e66faa (diff) | |
download | rockbox-9ffd9327e339ee9028654000497525b62e826652.tar.gz rockbox-9ffd9327e339ee9028654000497525b62e826652.zip |
Fix red/yellow
Change-Id: Ie01251af2cd843979b5fdefcfa541ba377d13bd7
Diffstat (limited to 'apps/plugins/lib/grey_core.c')
-rw-r--r-- | apps/plugins/lib/grey_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/lib/grey_core.c b/apps/plugins/lib/grey_core.c index fc445c5403..bb6823522d 100644 --- a/apps/plugins/lib/grey_core.c +++ b/apps/plugins/lib/grey_core.c | |||
@@ -469,7 +469,7 @@ static unsigned long _grey_get_pixel(int x, int y) | |||
469 | static void _timer_isr(void) | 469 | static void _timer_isr(void) |
470 | { | 470 | { |
471 | #if defined(HAVE_BACKLIGHT_INVERSION) && !defined(SIMULATOR) | 471 | #if defined(HAVE_BACKLIGHT_INVERSION) && !defined(SIMULATOR) |
472 | unsigned long check = rb->isbacklight_hw_on(true) | 472 | unsigned long check = rb->is_backlight_on(true) |
473 | ? 0 : _GREY_BACKLIGHT_ON; | 473 | ? 0 : _GREY_BACKLIGHT_ON; |
474 | 474 | ||
475 | if ((_grey_info.flags & (_GREY_BACKLIGHT_ON|GREY_RAWMAPPED)) == check) | 475 | if ((_grey_info.flags & (_GREY_BACKLIGHT_ON|GREY_RAWMAPPED)) == check) |
@@ -648,7 +648,7 @@ bool grey_init(unsigned char *gbuf, long gbuf_size, | |||
648 | else | 648 | else |
649 | { | 649 | { |
650 | #if defined(HAVE_BACKLIGHT_INVERSION) && !defined(SIMULATOR) | 650 | #if defined(HAVE_BACKLIGHT_INVERSION) && !defined(SIMULATOR) |
651 | if (rb->isbacklight_hw_on(true)) | 651 | if (rb->is_backlight_on(true)) |
652 | _grey_info.flags |= _GREY_BACKLIGHT_ON; | 652 | _grey_info.flags |= _GREY_BACKLIGHT_ON; |
653 | #endif | 653 | #endif |
654 | fill_gvalues(); | 654 | fill_gvalues(); |