Fix some build errors and warnings.

Change-Id: I149c00fc6ba47d5134ad4f74c364bffd24079824
This commit is contained in:
Thomas Martitz 2014-06-21 00:49:05 +02:00
parent dbb76896ec
commit 8f6c779ff6
4 changed files with 12 additions and 6 deletions

View file

@ -600,9 +600,7 @@ int read_bmp_fd(int fd,
resize &= ~IMG_RESIZE;
resize |= IMG_NORESIZE;
#endif
#ifdef HAVE_REMOTE_LCD
remote = false;
#endif
}
#elif !defined(PLUGIN)
if (src_dim.width > BM_MAX_WIDTH)
@ -652,9 +650,7 @@ int read_bmp_fd(int fd,
totalsize = cformat->get_size(bm);
else {
totalsize = BM_SIZE(bm->width,bm->height,format,remote);
#ifdef HAVE_REMOTE_LCD
if (!remote)
#endif
if (depth == 32 && read_alpha) /* account for possible 4bit alpha per pixel */
totalsize += alphasize;
}