diff options
author | reinelt <> | 2004-06-26 06:12:15 +0000 |
---|---|---|
committer | reinelt <> | 2004-06-26 06:12:15 +0000 |
commit | 3f9f909fa330cb2ff47b56c43d2a4c5e1dc0a8c0 (patch) | |
tree | e3b5726251a92e6fb346d63a945f5f2a2ebf89b9 /drv_generic_text.c | |
parent | 8c92564c5979c79c34d37ca9b8f5f960550263f7 (diff) | |
download | lcd4linux-3f9f909fa330cb2ff47b56c43d2a4c5e1dc0a8c0.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
Diffstat (limited to 'drv_generic_text.c')
-rw-r--r-- | drv_generic_text.c | 14 |
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; } |