diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-04-08 10:12:08 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-04-08 16:36:43 +0200 |
commit | 5cdfe30e797a012dfad4bd32f5036a01cf704876 (patch) | |
tree | fe87d308f2d1bd1271109f4aeab623bf6c35078e /firmware | |
parent | 53b93ea6a60cf8900c88e00f774693dea9a4f297 (diff) | |
download | rockbox-5cdfe30e797a012dfad4bd32f5036a01cf704876.tar.gz rockbox-5cdfe30e797a012dfad4bd32f5036a01cf704876.tar.bz2 rockbox-5cdfe30e797a012dfad4bd32f5036a01cf704876.zip |
hiby: Use HAVE_LCD_ENABLE instead of HAVE_LCD_SLEEP
Change-Id: I93819f5ecaad9101a711a0cca626570c7aef0e57
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/target/hosted/lcd-linuxfb.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/target/hosted/lcd-linuxfb.c b/firmware/target/hosted/lcd-linuxfb.c index 6a3aa36b5d..05d0055475 100644 --- a/firmware/target/hosted/lcd-linuxfb.c +++ b/firmware/target/hosted/lcd-linuxfb.c @@ -92,7 +92,7 @@ void lcd_enable(bool on) { const char * const sysfs_fb_blank = "/sys/class/graphics/fb0/blank"; -#ifdef HAVE_LCD_SLEEP +#ifdef HAVE_LCD_ENABLE if (lcd_active() != on) #endif { @@ -118,8 +118,8 @@ extern void lcd_copy_buffer_rect(fb_data *dst, const fb_data *src, void lcd_update(void) { -#ifdef HAVE_LCD_SLEEP - if (lcd_active() != on) +#ifdef HAVE_LCD_ENABLE + if (lcd_active()) #endif { /* Copy the Rockbox framebuffer to the second framebuffer */ @@ -131,8 +131,8 @@ void lcd_update(void) void lcd_update_rect(int x, int y, int width, int height) { -#ifdef HAVE_LCD_SLEEP - if (lcd_active() != on) +#ifdef HAVE_LCD_ENABLE + if (lcd_active()) #endif { fb_data *dst = LCD_FRAMEBUF_ADDR(x, y); |