From 72f150139e336f8d2f3a14010ce973a2a6e217de Mon Sep 17 00:00:00 2001 From: Andrew Mahone Date: Wed, 10 Dec 2008 20:41:53 +0000 Subject: 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 --- apps/recorder/bmp.h | 5 ++--- 1 file 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) static inline int get_totalsize(struct bitmap *bm, bool remote) { int sz; -#if defined(HAVE_REMOTE_LCD) && \ - (LCD_REMOTE_DEPTH == 2) && (LCD_REMOTE_PIXELFORMAT == VERTICAL_INTERLEAVED) - if (remote) +#ifdef HAVE_REMOTE_LCD + if (remote && sizeof(fb_data) != sizeof(fb_remote_data)) sz = sizeof(fb_remote_data); else #endif /* LCD_REMOTE_DEPTH / LCD_REMOTE_PIXELFORMAT */ -- cgit v1.2.3