diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2008-05-28 10:17:16 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2008-05-28 10:17:16 +0000 |
| commit | adf2e4c9a012fda200431c92cb2c1707dbe2f0a3 (patch) | |
| tree | 3a2755b05f9e2092d5bff458929b825c955c66f1 /firmware/export/lcd.h | |
| parent | b57b779fbced4a3fc1ecd0799a7666c2f1645f17 (diff) | |
| download | rockbox-adf2e4c9a012fda200431c92cb2c1707dbe2f0a3.zip rockbox-adf2e4c9a012fda200431c92cb2c1707dbe2f0a3.tar.gz rockbox-adf2e4c9a012fda200431c92cb2c1707dbe2f0a3.tar.bz2 rockbox-adf2e4c9a012fda200431c92cb2c1707dbe2f0a3.tar.xz | |
Targets with HAVE_LCD_ENABLE: Provide a means to receive notifications when the lcd is enabled and the image is refreshed so overlayed drawing can also be refreshed. Chiefly mpegplayer needs this so it can redraw the YUV data after the backlight is turned on while paused or when using 'Set Start Time'.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17640 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/lcd.h')
| -rw-r--r-- | firmware/export/lcd.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h index 3e0ec78..45a6850 100644 --- a/firmware/export/lcd.h +++ b/firmware/export/lcd.h @@ -341,6 +341,10 @@ void lcd_poweroff(void); /* Enable/disable the main display. */ extern void lcd_enable(bool on); extern bool lcd_enabled(void); +/* Register a hook that is called when the lcd is powered and after the + * framebuffer data is synchronized */ +void lcd_set_enable_hook(void (*enable_hook)(void)); +void lcd_call_enable_hook(void); #endif /* HAVE_LCD_ENABLE */ #ifdef HAVE_LCD_SLEEP |