aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp
diff options
context:
space:
mode:
authorroot <root@ps-pc.(none)>2014-07-06 19:56:54 +0300
committerroot <root@ps-pc.(none)>2014-07-06 19:56:54 +0300
commit76625b646bf3bbbb70a612be993e7003b0033e22 (patch)
tree5ce29f7206eace0176604c846ca3430ee45cab5b /drivers/gdisp
parent28f9e7f7669c900a471aef6936d56a3a51b243ea (diff)
downloaduGFX-76625b646bf3bbbb70a612be993e7003b0033e22.tar.gz
uGFX-76625b646bf3bbbb70a612be993e7003b0033e22.tar.bz2
uGFX-76625b646bf3bbbb70a612be993e7003b0033e22.zip
fixed orientation 90 degree
Diffstat (limited to 'drivers/gdisp')
-rw-r--r--drivers/gdisp/PCF8812/gdisp_lld_PCF8812.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gdisp/PCF8812/gdisp_lld_PCF8812.c b/drivers/gdisp/PCF8812/gdisp_lld_PCF8812.c
index 91f77351..c4543d45 100644
--- a/drivers/gdisp/PCF8812/gdisp_lld_PCF8812.c
+++ b/drivers/gdisp/PCF8812/gdisp_lld_PCF8812.c
@@ -144,7 +144,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
break;
case GDISP_ROTATE_90:
x = g->p.y;
- y = g->p.x;
+ y = (g->g.Width - g->p.x - 1);
break;
case GDISP_ROTATE_180:
x = g->g.Width - g->p.x - 1;