aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndrew Hannam <andrewh@inmarket.com.au>2012-09-10 20:38:54 +1000
committerAndrew Hannam <andrewh@inmarket.com.au>2012-09-10 20:38:54 +1000
commit7025d927cace6ac9f1c47c2461498e5682f75bda (patch)
tree30cf07ed9ce2370b0a82323590f3569f38dc12bd /include
parent3a8d39980b9124fe899605cb5350f42d093b1a10 (diff)
downloaduGFX-7025d927cace6ac9f1c47c2461498e5682f75bda.tar.gz
uGFX-7025d927cace6ac9f1c47c2461498e5682f75bda.tar.bz2
uGFX-7025d927cace6ac9f1c47c2461498e5682f75bda.zip
Clip Boundary Conditions & Nokia6610 Fixes
Clipping Boundary Conditions are now fixed. Nokia6610 Driver now works properly, also supports setting LCD contrast.
Diffstat (limited to 'include')
-rw-r--r--include/gdisp_emulation.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/gdisp_emulation.c b/include/gdisp_emulation.c
index fc82e1b5..b29726a1 100644
--- a/include/gdisp_emulation.c
+++ b/include/gdisp_emulation.c
@@ -572,11 +572,11 @@
if (column & 0x01) {
for(xs=0; xs < xscale; xs++)
for(ys=0; ys < yscale; ys++)
- GDISP_LLD(drawpixel)(x+i, y+j, color);
+ GDISP_LLD(drawpixel)(x+i+xs, y+j+ys, color);
} else {
for(xs=0; xs < xscale; xs++)
for(ys=0; ys < yscale; ys++)
- GDISP_LLD(drawpixel)(x+i, y+j, bgcolor);
+ GDISP_LLD(drawpixel)(x+i+xs, y+j+ys, bgcolor);
}
}
}