Fix compiler warnings
This commit is contained in:
parent
fe980847d4
commit
8f779effe1
@ -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));
|
||||
|
@ -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:
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user