aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c
diff options
context:
space:
mode:
authorergosys <ergosys@gmail.com>2014-12-11 15:56:55 -0800
committerergosys <ergosys@gmail.com>2014-12-12 16:21:08 -0800
commit96a5f5fbea7333443d9c0eeac57e3cb975494aa1 (patch)
tree9f49ad9823050fe8925f21b51daffb5c0eb0c042 /drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c
parent9d0b7a0bbe93d8bd5a76032605dc3b0ac93fb615 (diff)
downloaduGFX-96a5f5fbea7333443d9c0eeac57e3cb975494aa1.tar.gz
uGFX-96a5f5fbea7333443d9c0eeac57e3cb975494aa1.tar.bz2
uGFX-96a5f5fbea7333443d9c0eeac57e3cb975494aa1.zip
fix GDISP_ROTATE_270 case
Diffstat (limited to 'drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c')
-rw-r--r--drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c b/drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c
index d3f8ae2b..f241270e 100644
--- a/drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c
+++ b/drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c
@@ -170,8 +170,8 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
y = GDISP_SCREEN_HEIGHT-1 - g->p.y;
break;
case GDISP_ROTATE_270:
- x = GDISP_SCREEN_HEIGHT-1 - g->p.y;
- x = g->p.x;
+ x = GDISP_SCREEN_WIDTH-1 - g->p.y;
+ y = g->p.x;
break;
}
if (gdispColor2Native(g->p.color) != Black)
@@ -201,7 +201,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
y = GDISP_SCREEN_HEIGHT-1 - g->p.y;
break;
case GDISP_ROTATE_270:
- x = GDISP_SCREEN_HEIGHT-1 - g->p.y;
+ x = GDISP_SCREEN_WIDTH-1 - g->p.y;
y = g->p.x;
break;
}