summaryrefslogtreecommitdiffstats
path: root/firmware/screendump.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/screendump.c')
-rw-r--r--firmware/screendump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/screendump.c b/firmware/screendump.c
index 226d08a390..1acaaafba6 100644
--- a/firmware/screendump.c
+++ b/firmware/screendump.c
@@ -234,8 +234,8 @@ void screen_dump(void)
#endif
}
while (dst < dst_end);
-#elif LCD_DEPTH == 24
- dst_end = dst + LCD_WIDTH*3;
+#elif LCD_DEPTH >= 24
+ dst_end = dst + LCD_WIDTH*sizeof(fb_data);
src = FBADDR(0, y);
do
{