diff options
Diffstat (limited to 'drivers/ginput/touch/STMPE610')
-rw-r--r-- | drivers/ginput/touch/STMPE610/gmouse_lld_STMPE610.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/ginput/touch/STMPE610/gmouse_lld_STMPE610.c b/drivers/ginput/touch/STMPE610/gmouse_lld_STMPE610.c index 3d3acc55..39fe0a24 100644 --- a/drivers/ginput/touch/STMPE610/gmouse_lld_STMPE610.c +++ b/drivers/ginput/touch/STMPE610/gmouse_lld_STMPE610.c @@ -211,14 +211,14 @@ static gBool read_xyz(GMouse* m, GMouseReading* pdr) #if GDISP_NEED_CONTROL switch(gdispGGetOrientation(m->display)) { default: - case GDISP_ROTATE_0: - case GDISP_ROTATE_180: + case gOrientation0: + case gOrientation180: default: pdr->x = pdr->x / (4096/gdispGGetWidth(m->display)); pdr->y = pdr->y / (4096/gdispGGetHeight(m->display)); break; - case GDISP_ROTATE_90: - case GDISP_ROTATE_270: + case gOrientation90: + case gOrientation270: pdr->x = pdr->x / (4096/gdispGGetHeight(m->display)); pdr->y = pdr->y / (4096/gdispGGetWidth(m->display)); break; |