From 76625b646bf3bbbb70a612be993e7003b0033e22 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 6 Jul 2014 19:56:54 +0300 Subject: fixed orientation 90 degree --- drivers/gdisp/PCF8812/gdisp_lld_PCF8812.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gdisp/PCF8812') 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; -- cgit v1.2.3