aboutsummaryrefslogtreecommitdiffstats
path: root/USBLCD.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2003-09-09 11:47:47 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2003-09-09 11:47:47 +0000
commitef5ef770de8b4b5d682d24efff30c6cc084d8cc4 (patch)
tree4f5889fd2db8fcca917f6decbcfc30a55f14c74c /USBLCD.c
parentdd4d20ad1a3970752a4fe81c95c164bf751c0f16 (diff)
downloadlcd4linux-ef5ef770de8b4b5d682d24efff30c6cc084d8cc4.tar.gz
[lcd4linux @ 2003-09-09 11:47:47 by reinelt]
basic icon support for HD44780 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@234 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to '')
-rw-r--r--USBLCD.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/USBLCD.c b/USBLCD.c
index bad43a1..60c689f 100644
--- a/USBLCD.c
+++ b/USBLCD.c
@@ -1,4 +1,4 @@
-/* $Id: USBLCD.c,v 1.14 2003/09/09 06:54:43 reinelt Exp $
+/* $Id: USBLCD.c,v 1.15 2003/09/09 11:47:47 reinelt Exp $
*
* Driver for USBLCD ( see http://www.usblcd.de )
* This Driver is based on HD44780.c
@@ -22,6 +22,9 @@
*
*
* $Log: USBLCD.c,v $
+ * Revision 1.15 2003/09/09 11:47:47 reinelt
+ * basic icon support for HD44780
+ *
* Revision 1.14 2003/09/09 06:54:43 reinelt
* new function 'cfg_number()'
*
@@ -338,13 +341,9 @@ int USBLCD_flush (void)
for (row=0; row<Lcd.rows; row++) {
for (col=0; col<Lcd.cols; col++) {
c=bar_peek(row, col);
+ if (c==-1) c=icon_peek(row, col);
if (c!=-1) {
FrameBuffer1[row*Lcd.cols+col]=(char)c;
- } else {
- c=icon_peek(row, col);
- if (c!=-1) {
- FrameBuffer1[row*Lcd.cols+col]=(char)c;
- }
}
}
for (col=0; col<Lcd.cols; col++) {