More fixes to TLS8204 driver

This commit is contained in:
inmarket 2015-02-07 01:12:46 +10:00
parent 2d8c9bdcec
commit b8eab8f035
2 changed files with 6 additions and 4 deletions

View File

@ -18,6 +18,8 @@ FEATURE: Add a checkbox "Toggle Button" custom draw
FEATURE: Add Tetris as an application demo
FEATURE: Add HY-MiniSTM32V board support
FEATURE: Add GWIN feature to flash any window/widget
FIX: Lots of GDISP monochrome drivers fixed
FEATURE: Added TLS8204 GDISP driver
*** Release 2.2 ***

View File

@ -182,14 +182,14 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
break;
case GDISP_ROTATE_90:
x = g->p.y;
y = GDISP_SCREEN_HEIGHT-1 - g->p.x;
y = GDISP_TLS8204_HEIGHT-1 - g->p.x;
break;
case GDISP_ROTATE_180:
x = GDISP_SCREEN_WIDTH-1 - g->p.x;
y = GDISP_SCREEN_HEIGHT-1 - g->p.y;
x = GDISP_TLS8204_WIDTH-1 - g->p.x;
y = GDISP_TLS8204_HEIGHT-1 - g->p.y;
break;
case GDISP_ROTATE_270:
x = GDISP_SCREEN_WIDTH-1 - g->p.y;
x = GDISP_TLS8204_WIDTH-1 - g->p.y;
y = g->p.x;
break;
}