aboutsummaryrefslogtreecommitdiffstats
path: root/drv_serdisplib.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2005-05-11 04:27:49 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2005-05-11 04:27:49 +0000
commit3cc44a21e2cd9547b46fd409400b884ebc06d44c (patch)
treea628d262ae22a6c2e6e1f11c38472556e1a7373f /drv_serdisplib.c
parent424c378dd92c9ba92ba258689a0358c3cc3010b5 (diff)
downloadlcd4linux-3cc44a21e2cd9547b46fd409400b884ebc06d44c.tar.gz
[lcd4linux @ 2005-05-11 04:27:49 by reinelt]
small serdisplib bugs fixed git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@549 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'drv_serdisplib.c')
-rw-r--r--drv_serdisplib.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/drv_serdisplib.c b/drv_serdisplib.c
index 6b44139..90e20c4 100644
--- a/drv_serdisplib.c
+++ b/drv_serdisplib.c
@@ -1,4 +1,4 @@
-/* $Id: drv_serdisplib.c,v 1.1 2005/05/10 13:20:14 reinelt Exp $
+/* $Id: drv_serdisplib.c,v 1.2 2005/05/11 04:27:49 reinelt Exp $
*
* driver for serdisplib displays
*
@@ -23,6 +23,9 @@
*
*
* $Log: drv_serdisplib.c,v $
+ * Revision 1.2 2005/05/11 04:27:49 reinelt
+ * small serdisplib bugs fixed
+ *
* Revision 1.1 2005/05/10 13:20:14 reinelt
* added serdisplib driver
*
@@ -39,13 +42,9 @@
#include "config.h"
#include <stdlib.h>
-//#include <stdio.h>
+#include <stdio.h>
#include <string.h>
-//#include <errno.h>
#include <unistd.h>
-//#include <termios.h>
-//#include <fcntl.h>
-//#include <sys/time.h>
#include <serdisplib/serdisp.h>
@@ -82,7 +81,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;
- serdisp_setcolour(dd, r, c, color);
+ serdisp_setcolour(dd, c, r, color);
}
}
@@ -94,7 +93,6 @@ static int drv_SD_start(const char *section)
{
long version;
char *port, *model, *options, *s;
- int TROWS, TCOLS;
version = serdisp_getversioncode();
info ("%s: header version %d.%d", Name, SERDISP_VERSION_MAJOR, SERDISP_VERSION_MINOR);
@@ -154,9 +152,6 @@ static int drv_SD_start(const char *section)
return -1;
}
- TROWS = DROWS / YRES; /* text rows */
- TCOLS = DCOLS / XRES; /* text cols */
-
/* clear display */
serdisp_clear(dd);