mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
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
This commit is contained in:
parent
2ea61be605
commit
72f150139e
1 changed files with 2 additions and 3 deletions
|
|
@ -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)
|
static inline int get_totalsize(struct bitmap *bm, bool remote)
|
||||||
{
|
{
|
||||||
int sz;
|
int sz;
|
||||||
#if defined(HAVE_REMOTE_LCD) && \
|
#ifdef HAVE_REMOTE_LCD
|
||||||
(LCD_REMOTE_DEPTH == 2) && (LCD_REMOTE_PIXELFORMAT == VERTICAL_INTERLEAVED)
|
if (remote && sizeof(fb_data) != sizeof(fb_remote_data))
|
||||||
if (remote)
|
|
||||||
sz = sizeof(fb_remote_data);
|
sz = sizeof(fb_remote_data);
|
||||||
else
|
else
|
||||||
#endif /* LCD_REMOTE_DEPTH / LCD_REMOTE_PIXELFORMAT */
|
#endif /* LCD_REMOTE_DEPTH / LCD_REMOTE_PIXELFORMAT */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue