summaryrefslogtreecommitdiff
path: root/firmware/drivers/lcd-16bit.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2014-06-15 18:26:44 +0200
committerThomas Martitz <kugel@rockbox.org>2014-06-21 00:13:58 +0200
commit0250be1d6799db7b5ddc99cb33f31bf9cff01ed2 (patch)
tree99b180605eda8c68bcd32ba19b561b5fe3da40c8 /firmware/drivers/lcd-16bit.c
parente49dcbf190b12f8830d7ce057d59d22db8921790 (diff)
lcd-16bit: Split out some functions to lcd-color-common.c
An upcoming lcd-24bit.c driver will re-use a lot of code from the 16bit drivers, so prepare for that. Change-Id: I7bc7f6b992e5e3f4e0a0aa54dc08103ebb05315f
Diffstat (limited to 'firmware/drivers/lcd-16bit.c')
-rw-r--r--firmware/drivers/lcd-16bit.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/firmware/drivers/lcd-16bit.c b/firmware/drivers/lcd-16bit.c
index 4d4166a384..3c99560b6d 100644
--- a/firmware/drivers/lcd-16bit.c
+++ b/firmware/drivers/lcd-16bit.c
@@ -41,8 +41,18 @@
#define ROW_INC LCD_WIDTH
#define COL_INC 1
-#include "lcd-16bit-common.c"
+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-bitmap-common.c"
+#include "lcd-16bit-common.c"
/*** drawing functions ***/