summaryrefslogtreecommitdiffstats
path: root/firmware/target/hosted/agptek/lcd-target.h
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2018-06-14 10:03:07 +0200
committerMarcin Bukat <marcin.bukat@gmail.com>2018-06-14 10:03:07 +0200
commit5c015ada908d491fa2f9fa37b83e3fc9c56b4d86 (patch)
tree19ddc935411ec7a2e98827f96b314d9db4860898 /firmware/target/hosted/agptek/lcd-target.h
parent755b824596b68b712f94858a875da62f0d5fc50a (diff)
downloadrockbox-5c015ada908d491fa2f9fa37b83e3fc9c56b4d86.tar.gz
rockbox-5c015ada908d491fa2f9fa37b83e3fc9c56b4d86.tar.bz2
rockbox-5c015ada908d491fa2f9fa37b83e3fc9c56b4d86.zip
Agptek Rocker: Implement lcd_enable()
In theory this should slightly improve battery life. Change-Id: Iaf55beb7dbc20e7562017958aeb0386459d49a31
Diffstat (limited to 'firmware/target/hosted/agptek/lcd-target.h')
-rw-r--r--firmware/target/hosted/agptek/lcd-target.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/target/hosted/agptek/lcd-target.h b/firmware/target/hosted/agptek/lcd-target.h
index 346644bdfc..b6fcfdb98f 100644
--- a/firmware/target/hosted/agptek/lcd-target.h
+++ b/firmware/target/hosted/agptek/lcd-target.h
@@ -21,6 +21,10 @@
#ifndef __LCD_TARGET_H__
#define __LCD_TARGET_H__
-extern fb_data *framebuffer; /* see lcd-nwz.c */
+/* Agptek needs special ioctl() to redraw updated framebuffer content */
+#define LCD_OPTIMIZED_UPDATE
+#define LCD_OPTIMIZED_UPDATE_RECT
+
+extern fb_data *framebuffer; /* see lcd-agptek.c */
#define LCD_FRAMEBUF_ADDR(col, row) (framebuffer + (row)*LCD_WIDTH + (col))
#endif /* __LCD_TARGET_H__ */