diff options
Diffstat (limited to 'drivers/ginput/touch/FT5x06/gmouse_lld_FT5x06.c')
-rw-r--r-- | drivers/ginput/touch/FT5x06/gmouse_lld_FT5x06.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/ginput/touch/FT5x06/gmouse_lld_FT5x06.c b/drivers/ginput/touch/FT5x06/gmouse_lld_FT5x06.c index aef4de42..bf34654a 100644 --- a/drivers/ginput/touch/FT5x06/gmouse_lld_FT5x06.c +++ b/drivers/ginput/touch/FT5x06/gmouse_lld_FT5x06.c @@ -77,13 +77,13 @@ 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: pdr->x = gdispGGetWidth(m->display) - 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 = gdispGGetHeight(m->display) - pdr->x / (4096/gdispGGetHeight(m->display)); pdr->y = pdr->y / (4096/gdispGGetWidth(m->display)); break; |