Replace missing breaks.
This commit is contained in:
parent
6c0409f25b
commit
d008c83bc7
@ -214,10 +214,12 @@ static bool_t read_xyz(GMouse* m, GMouseReading* pdr)
|
|||||||
case GDISP_ROTATE_180:
|
case GDISP_ROTATE_180:
|
||||||
pdr->x = gdispGGetWidth(m->display) - pdr->x / (4096/gdispGGetWidth(m->display));
|
pdr->x = gdispGGetWidth(m->display) - pdr->x / (4096/gdispGGetWidth(m->display));
|
||||||
pdr->y = pdr->y / (4096/gdispGGetHeight(m->display));
|
pdr->y = pdr->y / (4096/gdispGGetHeight(m->display));
|
||||||
|
break;
|
||||||
case GDISP_ROTATE_90:
|
case GDISP_ROTATE_90:
|
||||||
case GDISP_ROTATE_270:
|
case GDISP_ROTATE_270:
|
||||||
pdr->x = gdispGGetHeight(m->display) - pdr->x / (4096/gdispGGetHeight(m->display));
|
pdr->x = gdispGGetHeight(m->display) - pdr->x / (4096/gdispGGetHeight(m->display));
|
||||||
pdr->y = pdr->y / (4096/gdispGGetWidth(m->display));
|
pdr->y = pdr->y / (4096/gdispGGetWidth(m->display));
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
pdr->x = gdispGGetWidth(m->display) - pdr->x / (4096/gdispGGetWidth(m->display));
|
pdr->x = gdispGGetWidth(m->display) - pdr->x / (4096/gdispGGetWidth(m->display));
|
||||||
|
Loading…
Reference in New Issue
Block a user