diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-03-20 13:00:10 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-03-24 18:59:50 -0400 |
commit | 9bde653410e83d5e97729aef212341f3cde790bc (patch) | |
tree | e5d7cd4f94445b3d5bf7f021b934bcaa9094a7a5 /firmware/export/screendump.h | |
parent | e956f7dc8369b3d1928a1274ca6866b42116cc1f (diff) | |
download | rockbox-9bde653410e83d5e97729aef212341f3cde790bc.tar.gz rockbox-9bde653410e83d5e97729aef212341f3cde790bc.zip |
firmware: allow screendump in bootloader
Enabled if target defines HAVE_BOOTLOADER_SCREENDUMP
Change-Id: Idc135ef81e55d0f3eb8e7d2763d455c6455cf8fd
Diffstat (limited to 'firmware/export/screendump.h')
-rw-r--r-- | firmware/export/screendump.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/firmware/export/screendump.h b/firmware/export/screendump.h index 953184c3ac..b8fc27047d 100644 --- a/firmware/export/screendump.h +++ b/firmware/export/screendump.h | |||
@@ -52,12 +52,7 @@ | |||
52 | #define DUMP_BMP_LINESIZE ((LCD_WIDTH*3 + 3) & ~3) | 52 | #define DUMP_BMP_LINESIZE ((LCD_WIDTH*3 + 3) & ~3) |
53 | #endif | 53 | #endif |
54 | 54 | ||
55 | #ifdef BOOTLOADER | 55 | #ifdef HAVE_SCREENDUMP |
56 | |||
57 | #define screen_dump() do { } while(0) | ||
58 | #define remote_screen_dump() do { } while(0) | ||
59 | |||
60 | #else /* !BOOTLOADER */ | ||
61 | 56 | ||
62 | /* Save a .BMP file containing the current screen contents. */ | 57 | /* Save a .BMP file containing the current screen contents. */ |
63 | void screen_dump(void); | 58 | void screen_dump(void); |
@@ -69,6 +64,11 @@ void screen_dump_set_hook(void (*hook)(int fd)); | |||
69 | void remote_screen_dump(void); | 64 | void remote_screen_dump(void); |
70 | #endif | 65 | #endif |
71 | 66 | ||
72 | #endif /* !BOOTLOADER */ | 67 | #else /* !HAVE_SCREENDUMP */ |
68 | |||
69 | #define screen_dump() do { } while(0) | ||
70 | #define remote_screen_dump() do { } while(0) | ||
71 | |||
72 | #endif /* HAVE_SCREENDUMP */ | ||
73 | 73 | ||
74 | #endif /* __SCREENDUMP_H__ */ | 74 | #endif /* __SCREENDUMP_H__ */ |