summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Mahone <andrew.mahone@gmail.com>2008-12-10 20:41:53 +0000
committerAndrew Mahone <andrew.mahone@gmail.com>2008-12-10 20:41:53 +0000
commit72f150139e336f8d2f3a14010ce973a2a6e217de (patch)
treee3f4cc08af3b3e3cac44cc27372992e02442d1ea
parent2ea61be605065d002b657a388909f6845cf5113a (diff)
downloadrockbox-72f150139e336f8d2f3a14010ce973a2a6e217de.tar.gz
rockbox-72f150139e336f8d2f3a14010ce973a2a6e217de.zip
fix get_totalsize to return the correct size in some cases where it failed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19385 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/recorder/bmp.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/recorder/bmp.h b/apps/recorder/bmp.h
index 1f29103556..d1b1d7f3ed 100644
--- a/apps/recorder/bmp.h
+++ b/apps/recorder/bmp.h
@@ -170,9 +170,8 @@ static inline int get_fb_width(struct bitmap *bm, bool remote)
170static inline int get_totalsize(struct bitmap *bm, bool remote) 170static inline int get_totalsize(struct bitmap *bm, bool remote)
171{ 171{
172 int sz; 172 int sz;
173#if defined(HAVE_REMOTE_LCD) && \ 173#ifdef HAVE_REMOTE_LCD
174 (LCD_REMOTE_DEPTH == 2) && (LCD_REMOTE_PIXELFORMAT == VERTICAL_INTERLEAVED) 174 if (remote && sizeof(fb_data) != sizeof(fb_remote_data))
175 if (remote)
176 sz = sizeof(fb_remote_data); 175 sz = sizeof(fb_remote_data);
177 else 176 else
178#endif /* LCD_REMOTE_DEPTH / LCD_REMOTE_PIXELFORMAT */ 177#endif /* LCD_REMOTE_DEPTH / LCD_REMOTE_PIXELFORMAT */