aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ginput
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2015-02-25 17:06:49 +1000
committerinmarket <andrewh@inmarket.com.au>2015-02-25 17:06:49 +1000
commitd008c83bc728934498820e0019fd0b1771cdeff9 (patch)
treef4545abdb0a8c6c3f8babc0ed871413b2a696992 /drivers/ginput
parent6c0409f25b996711bda0a185fffa6a99e58577b3 (diff)
downloaduGFX-d008c83bc728934498820e0019fd0b1771cdeff9.tar.gz
uGFX-d008c83bc728934498820e0019fd0b1771cdeff9.tar.bz2
uGFX-d008c83bc728934498820e0019fd0b1771cdeff9.zip
Replace missing breaks.
Diffstat (limited to 'drivers/ginput')
-rw-r--r--drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811.c b/drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811.c
index 56e8c98f..fe1a0b87 100644
--- a/drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811.c
+++ b/drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811.c
@@ -214,10 +214,12 @@ static bool_t read_xyz(GMouse* m, GMouseReading* pdr)
case GDISP_ROTATE_180:
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:
pdr->x = gdispGGetHeight(m->display) - pdr->x / (4096/gdispGGetHeight(m->display));
pdr->y = pdr->y / (4096/gdispGGetWidth(m->display));
+ break;
}
#else
pdr->x = gdispGGetWidth(m->display) - pdr->x / (4096/gdispGGetWidth(m->display));