aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp/ILI9320/gdisp_lld.c
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2012-11-27 23:11:34 +0100
committerJoel Bodenmann <joel@unormal.org>2012-11-27 23:11:34 +0100
commitfa82491a0badcb1d6afb46554655deec35a4a9f3 (patch)
treebedd39c78060e8e8368e8e3a8613eba7c9d0a15d /drivers/gdisp/ILI9320/gdisp_lld.c
parent8bdfc52efed023b492c47bbfd5976db145074b55 (diff)
downloaduGFX-fa82491a0badcb1d6afb46554655deec35a4a9f3.tar.gz
uGFX-fa82491a0badcb1d6afb46554655deec35a4a9f3.tar.bz2
uGFX-fa82491a0badcb1d6afb46554655deec35a4a9f3.zip
ILI9320 fix
Diffstat (limited to 'drivers/gdisp/ILI9320/gdisp_lld.c')
-rw-r--r--drivers/gdisp/ILI9320/gdisp_lld.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gdisp/ILI9320/gdisp_lld.c b/drivers/gdisp/ILI9320/gdisp_lld.c
index f670966c..5ca5dceb 100644
--- a/drivers/gdisp/ILI9320/gdisp_lld.c
+++ b/drivers/gdisp/ILI9320/gdisp_lld.c
@@ -244,10 +244,10 @@ static void lld_lcdSetCursor(uint16_t x, uint16_t y) {
static void lld_lcdSetViewPort(uint16_t x, uint16_t y, uint16_t cx, uint16_t cy) {
switch(GDISP.Orientation) {
case GDISP_ROTATE_0:
- lld_lcdWriteReg(0x0050, x - 1);
- lld_lcdWriteReg(0x0051, x + cx - 2);
- lld_lcdWriteReg(0x0052, y - 1);
- lld_lcdWriteReg(0x0053, y + cy - 2);
+ lld_lcdWriteReg(0x0050, x);
+ lld_lcdWriteReg(0x0051, x + cx - 1);
+ lld_lcdWriteReg(0x0052, y);
+ lld_lcdWriteReg(0x0053, y + cy - 1);
break;
case GDISP_ROTATE_90: