diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2006-01-30 05:47:38 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2006-01-30 05:47:38 +0000 |
commit | 2523e50fbb5a076f9535c18dcce9ed7a0716e28d (patch) | |
tree | e9b5c891e426a38a451e52fbd9ece443b5f59457 /drv_serdisplib.c | |
parent | 5eca256613eb7e4fb476d5efa71a835af5bb5d06 (diff) | |
download | lcd4linux-2523e50fbb5a076f9535c18dcce9ed7a0716e28d.tar.gz |
[lcd4linux @ 2006-01-30 05:47:34 by reinelt]
graphic subsystem changed to full-color RGBA
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@626 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'drv_serdisplib.c')
-rw-r--r-- | drv_serdisplib.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/drv_serdisplib.c b/drv_serdisplib.c index 2fb3f4c..2ae02bf 100644 --- a/drv_serdisplib.c +++ b/drv_serdisplib.c @@ -1,4 +1,4 @@ -/* $Id: drv_serdisplib.c,v 1.5 2005/05/28 09:06:14 reinelt Exp $ +/* $Id: drv_serdisplib.c,v 1.6 2006/01/30 05:47:38 reinelt Exp $ * * driver for serdisplib displays * @@ -23,6 +23,9 @@ * * * $Log: drv_serdisplib.c,v $ + * Revision 1.6 2006/01/30 05:47:38 reinelt + * graphic subsystem changed to full-color RGBA + * * Revision 1.5 2005/05/28 09:06:14 reinelt * serdisplib cosmetics * @@ -98,7 +101,7 @@ static void drv_SD_blit(const int row, const int col, const int height, const in for (r = row; r < row + height; r++) { for (c = col; c < col + width; c++) { - color = drv_generic_graphic_FB[r * LCOLS + c] ? SD_COL_BLACK : SD_COL_WHITE; + color = drv_generic_graphic_gray(r, c) ? SD_COL_BLACK : SD_COL_WHITE; serdisp_setcolour(dd, c, r, color); } } @@ -352,10 +355,10 @@ int drv_SD_init(const char *section, const int quiet) widget_register(&wc); /* register plugins */ - AddFunction("LCD::contrast", 1, plugin_contrast); + AddFunction("LCD::contrast", 1, plugin_contrast); AddFunction("LCD::backlight", 1, plugin_backlight); - AddFunction("LCD::reverse", 1, plugin_reverse); - AddFunction("LCD::rotate", 1, plugin_rotate); + AddFunction("LCD::reverse", 1, plugin_reverse); + AddFunction("LCD::rotate", 1, plugin_rotate); return 0; } |