aboutsummaryrefslogtreecommitdiffstats
path: root/drv_serdisplib.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2006-02-27 08:12:34 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2006-02-27 08:12:34 +0000
commit5ec6cf452b9829303a75e59480749b1e2d9c7864 (patch)
treec2908b5a13e922d0c23594d7649c49f6c9673304 /drv_serdisplib.c
parentf1d2a23bac95450864d105e0f51d3e0cc9975aa9 (diff)
downloadlcd4linux-5ec6cf452b9829303a75e59480749b1e2d9c7864.tar.gz
[lcd4linux @ 2006-02-27 08:12:34 by reinelt]
use serdisplib's full color support git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@651 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'drv_serdisplib.c')
-rw-r--r--drv_serdisplib.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/drv_serdisplib.c b/drv_serdisplib.c
index c54cf72..30e7c50 100644
--- a/drv_serdisplib.c
+++ b/drv_serdisplib.c
@@ -1,4 +1,4 @@
-/* $Id: drv_serdisplib.c,v 1.9 2006/02/27 06:14:46 reinelt Exp $
+/* $Id: drv_serdisplib.c,v 1.10 2006/02/27 08:12:34 reinelt Exp $
*
* driver for serdisplib displays
*
@@ -23,6 +23,9 @@
*
*
* $Log: drv_serdisplib.c,v $
+ * Revision 1.10 2006/02/27 08:12:34 reinelt
+ * use serdisplib's full color support
+ *
* Revision 1.9 2006/02/27 06:14:46 reinelt
* graphic bug resulting in all black pixels solved
*
@@ -102,12 +105,11 @@ static serdisp_t *dd;
static void drv_SD_blit(const int row, const int col, const int height, const int width)
{
int r, c;
- long color;
for (r = row; r < row + height; r++) {
for (c = col; c < col + width; c++) {
- color = drv_generic_graphic_black(r, c) ? SD_COL_BLACK : SD_COL_WHITE;
- serdisp_setcolour(dd, c, r, color);
+ RGBA p = drv_generic_graphic_rgb(r, c);
+ serdisp_setcolour(dd, c, r, serdisp_pack2ARGB(0xff, p.R, p.G, p.B));
}
}
@@ -313,7 +315,7 @@ int drv_SD_init(const char *section, const int quiet)
{
int ret;
- info("%s: %s", Name, "$Revision: 1.9 $");
+ info("%s: %s", Name, "$Revision: 1.10 $");
/* real worker functions */
drv_generic_graphic_real_blit = drv_SD_blit;