From d008c83bc728934498820e0019fd0b1771cdeff9 Mon Sep 17 00:00:00 2001 From: inmarket Date: Wed, 25 Feb 2015 17:06:49 +1000 Subject: [PATCH] Replace missing breaks. --- drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811.c | 2 ++ 1 file changed, 2 insertions(+) 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));