diff options
author | Joel Bodenmann <joel@unormal.org> | 2013-09-28 02:24:09 +0200 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2013-09-28 08:45:46 +1000 |
commit | 3b8f14e2c8f03bcddfc1c274462bb46bc189c808 (patch) | |
tree | 0682a60a9708fbe1113102c02efbd5ad8f5368d3 /drivers/gdisp | |
parent | af81bdf7559b2fdaa2cda9e6ed6a90b95c480a4e (diff) | |
download | uGFX-3b8f14e2c8f03bcddfc1c274462bb46bc189c808.tar.gz uGFX-3b8f14e2c8f03bcddfc1c274462bb46bc189c808.tar.bz2 uGFX-3b8f14e2c8f03bcddfc1c274462bb46bc189c808.zip |
SSD1289 Area fill fix
Diffstat (limited to 'drivers/gdisp')
-rw-r--r-- | drivers/gdisp/SSD1289/gdisp_lld.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gdisp/SSD1289/gdisp_lld.c b/drivers/gdisp/SSD1289/gdisp_lld.c index a47fb17e..a55dd467 100644 --- a/drivers/gdisp/SSD1289/gdisp_lld.c +++ b/drivers/gdisp/SSD1289/gdisp_lld.c @@ -92,7 +92,7 @@ static void set_viewport(coord_t x, coord_t y, coord_t cx, coord_t cy) { write_reg(0x46, (y+cy-1) & 0x01FF);
break;
case GDISP_ROTATE_270:
- write_reg(0x44, (((x+cx-1) << 8) & 0xFF00 ) | (y & 0x00FF));
+ write_reg(0x44, (((y+cy-1) << 8) & 0xFF00 ) | (y & 0x00FF));
write_reg(0x45, x & 0x01FF);
write_reg(0x46, (x+cx-1) & 0x01FF);
break;
|