Fix compiler warnings

This commit is contained in:
inmarket 2015-02-28 16:26:37 +10:00
parent fe980847d4
commit 8f779effe1
3 changed files with 3 additions and 0 deletions

View File

@ -76,6 +76,7 @@ static bool_t MouseXYZ(GMouse* m, GMouseReading* pdr)
#if GMOUSE_FT5x06_SELF_CALIBRATE
#if GDISP_NEED_CONTROL
switch(gdispGGetOrientation(m->display)) {
default:
case GDISP_ROTATE_0:
case GDISP_ROTATE_180:
pdr->x = gdispGGetWidth(m->display) - pdr->x / (4096/gdispGGetWidth(m->display));

View File

@ -210,6 +210,7 @@ static bool_t read_xyz(GMouse* m, GMouseReading* pdr)
#if GMOUSE_STMPE610_SELF_CALIBRATE
#if GDISP_NEED_CONTROL
switch(gdispGGetOrientation(m->display)) {
default:
case GDISP_ROTATE_0:
case GDISP_ROTATE_180:
default:

View File

@ -210,6 +210,7 @@ static bool_t read_xyz(GMouse* m, GMouseReading* pdr)
#if GMOUSE_STMPE811_SELF_CALIBRATE
#if GDISP_NEED_CONTROL
switch(gdispGGetOrientation(m->display)) {
default:
case GDISP_ROTATE_0:
case GDISP_ROTATE_180:
pdr->x = gdispGGetWidth(m->display) - pdr->x / (4096/gdispGGetWidth(m->display));