aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2006-04-09 17:46:14 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2006-04-09 17:46:14 +0000
commite5dfc3af2e038f8050513329642791378bcb914e (patch)
treede16ec9e81e2896af8fc25b838a23a2d8c5304e4
parent44e13547adb794928f1cb2247c7cc038af07c924 (diff)
downloadlcd4linux-e5dfc3af2e038f8050513329642791378bcb914e.tar.gz
[lcd4linux @ 2006-04-09 17:46:14 by reinelt]
vertical bar patch fro graphic displays by Ronald Hopfer git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@656 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
-rw-r--r--drv_generic_graphic.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/drv_generic_graphic.c b/drv_generic_graphic.c
index be41cee..56de80c 100644
--- a/drv_generic_graphic.c
+++ b/drv_generic_graphic.c
@@ -23,6 +23,9 @@
*
*
* $Log: drv_generic_graphic.c,v $
+ * Revision 1.27 2006/04/09 17:46:14 reinelt
+ * vertical bar patch fro graphic displays by Ronald Hopfer
+ *
* Revision 1.26 2006/04/09 14:17:50 reinelt
* autoconf/library fixes, image and graphic display inversion
*
@@ -532,16 +535,16 @@ int drv_generic_graphic_bar_draw(WIDGET * W)
}
break;
- case DIR_SOUTH:
+ case DIR_NORTH:
val1 = max - val1;
val2 = max - val2;
rev = 1;
- case DIR_NORTH:
- for (y = 0; y < max; y++) {
- for (x = 0; x < XRES; x++) {
- int val = x < XRES / 2 ? val1 : val2;
- if (x < val)
+ case DIR_SOUTH:
+ for (x = 0; x < XRES; x++) {
+ int val = x < XRES / 2 ? val1 : val2;
+ for (y = 0; y < max; y++) {
+ if (y < val)
drv_generic_graphic_FB[layer][(row + y) * LCOLS + col + x] = rev ? bg : fg;
else
drv_generic_graphic_FB[layer][(row + y) * LCOLS + col + x] = rev ? fg : bg;