summaryrefslogtreecommitdiff
path: root/firmware/backlight.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2009-02-10 23:43:37 +0000
committerJens Arnold <amiconn@rockbox.org>2009-02-10 23:43:37 +0000
commit11ad7b4bc8bcb049040c02fae04074faf5dfaf27 (patch)
treece92c57120cb9b019743a863083f654e8d80f95f /firmware/backlight.c
parenteddb5680f9aefecdaccf24279cff2d3cf4fd5d86 (diff)
downloadrockbox-11ad7b4bc8bcb049040c02fae04074faf5dfaf27.tar.gz
rockbox-11ad7b4bc8bcb049040c02fae04074faf5dfaf27.zip
Move screendump from apps to firmware, solving two nasty firmware-to-apps calls. This required to move the filename creation functions as well. * Fix bug in the BMP header of Clip screendumps. * Add remote screendump for targets with an LCD remote. * Simplify some ifdefs and rename a macro in the sim.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19967 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/backlight.c')
-rw-r--r--firmware/backlight.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c
index 9c153e885a..513f643171 100644
--- a/firmware/backlight.c
+++ b/firmware/backlight.c
@@ -35,6 +35,7 @@
35#include "timer.h" 35#include "timer.h"
36#include "backlight.h" 36#include "backlight.h"
37#include "lcd.h" 37#include "lcd.h"
38#include "screendump.h"
38 39
39#ifdef HAVE_REMOTE_LCD 40#ifdef HAVE_REMOTE_LCD
40#include "lcd-remote.h" 41#include "lcd-remote.h"
@@ -57,9 +58,6 @@ int backlight_brightness = DEFAULT_BRIGHTNESS_SETTING;
57#include "backlight-sw-fading.h" 58#include "backlight-sw-fading.h"
58#endif 59#endif
59#ifdef SIMULATOR 60#ifdef SIMULATOR
60/* TODO: find a better way to do it but we need a kernel thread somewhere to
61 handle this */
62extern void screen_dump(void);
63 61
64static inline void _backlight_on(void) 62static inline void _backlight_on(void)
65{ 63{
@@ -600,9 +598,13 @@ void backlight_thread(void)
600#endif /* HAVE_REMOTE_LCD/ HAVE_REMOTE_LCD_AS_MAIN */ 598#endif /* HAVE_REMOTE_LCD/ HAVE_REMOTE_LCD_AS_MAIN */
601#endif /* !SIMULATOR */ 599#endif /* !SIMULATOR */
602#ifdef SIMULATOR 600#ifdef SIMULATOR
603 /* This one here too for lack of a better place */ 601 /* TODO: find a better way to do it but we need
602 * a kernel thread somewhere to handle this */
604 case SYS_SCREENDUMP: 603 case SYS_SCREENDUMP:
605 screen_dump(); 604 screen_dump();
605#ifdef HAVE_REMOTE_LCD
606 remote_screen_dump();
607#endif
606 break; 608 break;
607#endif 609#endif
608 case SYS_USB_CONNECTED: 610 case SYS_USB_CONNECTED: