diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-05-22 04:23:49 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-05-22 04:23:49 +0000 |
commit | cdee7ced9e0eafe17d8963c25d969b96b099b9f3 (patch) | |
tree | 9c1e4d4905b6537358104a31ad7d8fd1623fcbf5 | |
parent | da44a97d97f1a8f013ef2fdcf4f2c7ba72cc0cbd (diff) | |
download | lcd4linux-cdee7ced9e0eafe17d8963c25d969b96b099b9f3.tar.gz |
[lcd4linux @ 2004-05-22 04:23:49 by reinelt]
removed 16*x fix again (next time think before commit :-)
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@426 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
-rw-r--r-- | drv_HD44780.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drv_HD44780.c b/drv_HD44780.c index 7f47915..e3b302e 100644 --- a/drv_HD44780.c +++ b/drv_HD44780.c @@ -1,4 +1,4 @@ -/* $Id: drv_HD44780.c,v 1.19 2004/05/22 04:21:02 reinelt Exp $ +/* $Id: drv_HD44780.c,v 1.20 2004/05/22 04:23:49 reinelt Exp $ * * new style driver for HD44780-based displays * @@ -29,6 +29,10 @@ * * * $Log: drv_HD44780.c,v $ + * Revision 1.20 2004/05/22 04:23:49 reinelt + * + * removed 16*x fix again (next time think before commit :-) + * * Revision 1.19 2004/05/22 04:21:02 reinelt * * fix for display RAM layout on 16x4 displays (thanks to toxicated101) @@ -488,8 +492,8 @@ static void drv_HD_goto (int row, int col) // the HD66712 doesn't have a braindamadged RAM layout pos = row*32 + col; } else { - // 16*x Displays use a slightly different layout - if (DCOLS==16) { + // 16x4 Displays use a slightly different layout + if (DCOLS==16 && DROWS==4) { pos = (row%2)*64+(row/2)*16+col; } else { pos = (row%2)*64+(row/2)*20+col; |