summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/hosted/lcd-linuxfb.c10
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)
92{ 92{
93 const char * const sysfs_fb_blank = "/sys/class/graphics/fb0/blank"; 93 const char * const sysfs_fb_blank = "/sys/class/graphics/fb0/blank";
94 94
95#ifdef HAVE_LCD_SLEEP 95#ifdef HAVE_LCD_ENABLE
96 if (lcd_active() != on) 96 if (lcd_active() != on)
97#endif 97#endif
98 { 98 {
@@ -118,8 +118,8 @@ extern void lcd_copy_buffer_rect(fb_data *dst, const fb_data *src,
118 118
119void lcd_update(void) 119void lcd_update(void)
120{ 120{
121#ifdef HAVE_LCD_SLEEP 121#ifdef HAVE_LCD_ENABLE
122 if (lcd_active() != on) 122 if (lcd_active())
123#endif 123#endif
124 { 124 {
125 /* Copy the Rockbox framebuffer to the second framebuffer */ 125 /* Copy the Rockbox framebuffer to the second framebuffer */
@@ -131,8 +131,8 @@ void lcd_update(void)
131 131
132void lcd_update_rect(int x, int y, int width, int height) 132void lcd_update_rect(int x, int y, int width, int height)
133{ 133{
134#ifdef HAVE_LCD_SLEEP 134#ifdef HAVE_LCD_ENABLE
135 if (lcd_active() != on) 135 if (lcd_active())
136#endif 136#endif
137 { 137 {
138 fb_data *dst = LCD_FRAMEBUF_ADDR(x, y); 138 fb_data *dst = LCD_FRAMEBUF_ADDR(x, y);