summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2014-06-21 00:49:05 +0200
committerThomas Martitz <kugel@rockbox.org>2014-06-21 00:49:05 +0200
commit8f6c779ff6b1c738e13ba32da8dfb736b8df4abd (patch)
tree238c7bd23c5a4942a00949cb12bb148a74d647e3
parentdbb76896ec5a7d698bed16bb218ae8df51b3d961 (diff)
downloadrockbox-8f6c779.tar.gz
rockbox-8f6c779.zip
Fix some build errors and warnings.
Change-Id: I149c00fc6ba47d5134ad4f74c364bffd24079824
-rw-r--r--apps/plugins/logo.c2
-rw-r--r--apps/recorder/bmp.c4
-rw-r--r--firmware/drivers/lcd-16bit-vert.c10
-rw-r--r--firmware/drivers/lcd-24bit.c2
4 files changed, 12 insertions, 6 deletions
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;
}
diff --git a/firmware/drivers/lcd-16bit-vert.c b/firmware/drivers/lcd-16bit-vert.c
index 1222c12455..ffe2b85b3c 100644
--- a/firmware/drivers/lcd-16bit-vert.c
+++ b/firmware/drivers/lcd-16bit-vert.c
@@ -41,6 +41,16 @@
#define ROW_INC 1
#define COL_INC LCD_HEIGHT
+extern lcd_fastpixelfunc_type* const lcd_fastpixelfuncs_backdrop[];
+extern lcd_fastpixelfunc_type* const lcd_fastpixelfuncs_bgcolor[];
+
+static void ICODE_ATTR lcd_alpha_bitmap_part_mix(const fb_data* image,
+ const unsigned char *src, int src_x,
+ int src_y, int x, int y,
+ int width, int height,
+ int stride_image, int stride_src);
+
+#include "lcd-color-common.c"
#include "lcd-16bit-common.c"
#include "lcd-bitmap-common.c"
diff --git a/firmware/drivers/lcd-24bit.c b/firmware/drivers/lcd-24bit.c
index f87d63aaa3..092ed9d576 100644
--- a/firmware/drivers/lcd-24bit.c
+++ b/firmware/drivers/lcd-24bit.c
@@ -189,7 +189,7 @@ void lcd_fillrect(int x, int y, int width, int height)
enum fill_opt fillopt = OPT_NONE;
fb_data *dst, *dst_end;
int len, step;
- fb_data bits = { 0 };
+ fb_data bits = { 0, 0, 0 };
/******************** In viewport clipping **********************/
/* nothing to draw? */