aboutsummaryrefslogtreecommitdiffstats
path: root/drv_generic_text.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-06-26 06:12:15 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-06-26 06:12:15 +0000
commit55abb63f11967a147d26e4654cbbd7ab3f01a558 (patch)
treee3b5726251a92e6fb346d63a945f5f2a2ebf89b9 /drv_generic_text.c
parent19319129b58343f70382e6855a4c908bf669b146 (diff)
downloadlcd4linux-55abb63f11967a147d26e4654cbbd7ab3f01a558.tar.gz
[lcd4linux @ 2004-06-26 06:12:14 by reinelt]
support for Beckmann+Egle Compact Terminals some mostly cosmetic changes in the MatrixOrbital and USBLCD driver added debugging to the generic serial driver fixed a bug in the generic text driver where icons could be drawn outside the display bounds git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@479 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'drv_generic_text.c')
-rw-r--r--drv_generic_text.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/drv_generic_text.c b/drv_generic_text.c
index bd93849..8dadb26 100644
--- a/drv_generic_text.c
+++ b/drv_generic_text.c
@@ -1,4 +1,4 @@
-/* $Id: drv_generic_text.c,v 1.18 2004/06/20 10:09:55 reinelt Exp $
+/* $Id: drv_generic_text.c,v 1.19 2004/06/26 06:12:15 reinelt Exp $
*
* generic driver helper for text-based displays
*
@@ -23,6 +23,14 @@
*
*
* $Log: drv_generic_text.c,v $
+ * Revision 1.19 2004/06/26 06:12:15 reinelt
+ *
+ * support for Beckmann+Egle Compact Terminals
+ * some mostly cosmetic changes in the MatrixOrbital and USBLCD driver
+ * added debugging to the generic serial driver
+ * fixed a bug in the generic text driver where icons could be drawn outside
+ * the display bounds
+ *
* Revision 1.18 2004/06/20 10:09:55 reinelt
*
* 'const'ified the whole source
@@ -486,11 +494,11 @@ int drv_generic_text_icon_draw (WIDGET *W)
LayoutFB[row*LCOLS+col]=ascii;
// maybe send icon to the display
- if (DisplayFB[row*DCOLS+col]!=ascii) {
+ if (row < DROWS && col < DCOLS && DisplayFB[row*DCOLS+col] != ascii) {
DisplayFB[row*DCOLS+col]=ascii;
drv_generic_text_real_write (row, col, DisplayFB+row*DCOLS+col, 1);
}
-
+
return 0;
}