From 8f6c779ff6b1c738e13ba32da8dfb736b8df4abd Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sat, 21 Jun 2014 00:49:05 +0200 Subject: Fix some build errors and warnings. Change-Id: I149c00fc6ba47d5134ad4f74c364bffd24079824 --- apps/plugins/logo.c | 2 +- apps/recorder/bmp.c | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'apps') diff --git a/apps/plugins/logo.c b/apps/plugins/logo.c index a7257fae4b..e1c570b6a5 100644 --- a/apps/plugins/logo.c +++ b/apps/plugins/logo.c @@ -104,7 +104,7 @@ enum plugin_status plugin_start(const void* parameter) { rb->lcd_bitmap((const fb_data*)LOGO, x, y, LOGO_WIDTH, LOGO_HEIGHT); #ifdef REMOTE_LOGO rb->lcd_remote_clear_display(); - rb->lcd_remote_bitmap((const fb_data*)REMOTE_LOGO, + rb->lcd_remote_bitmap((const fb_remote_data*)REMOTE_LOGO, (x * (REMOTE_WIDTH - REMOTE_LOGO_WIDTH)) / (DISPLAY_WIDTH - LOGO_WIDTH), (y * (REMOTE_HEIGHT - REMOTE_LOGO_HEIGHT)) / (DISPLAY_HEIGHT - LOGO_HEIGHT), REMOTE_LOGO_WIDTH, REMOTE_LOGO_HEIGHT); diff --git a/apps/recorder/bmp.c b/apps/recorder/bmp.c index a9cc34b2c6..8d49fd7582 100644 --- a/apps/recorder/bmp.c +++ b/apps/recorder/bmp.c @@ -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; } -- cgit v1.2.3