aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2015-10-05 07:39:58 +1000
committerinmarket <andrewh@inmarket.com.au>2015-10-05 07:39:58 +1000
commite699e549ac015cfe40da0134095a05254978bd47 (patch)
treed173e1a2d34f6e9f873779a0d2c25538ebfe875d /drivers/gdisp
parenta73a86e57533ea96764658fe847bd33c4347111a (diff)
downloaduGFX-e699e549ac015cfe40da0134095a05254978bd47.tar.gz
uGFX-e699e549ac015cfe40da0134095a05254978bd47.tar.bz2
uGFX-e699e549ac015cfe40da0134095a05254978bd47.zip
Another minor update
Also add new studio options file
Diffstat (limited to 'drivers/gdisp')
-rw-r--r--drivers/gdisp/STM32LTDC/gdisp_lld_STM32LTDC.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/gdisp/STM32LTDC/gdisp_lld_STM32LTDC.c b/drivers/gdisp/STM32LTDC/gdisp_lld_STM32LTDC.c
index 9c2de092..0fb8ba5a 100644
--- a/drivers/gdisp/STM32LTDC/gdisp_lld_STM32LTDC.c
+++ b/drivers/gdisp/STM32LTDC/gdisp_lld_STM32LTDC.c
@@ -316,10 +316,8 @@ LLDSPEC color_t gdisp_lld_get_pixel_color(GDisplay* g)
switch(g->p.x) {
case GDISP_CONTROL_POWER:
// Don't do anything if it is the same power mode
- if (g->g.Powermode == (powermode_t)g->p.ptr) {
+ if (g->g.Powermode == (powermode_t)g->p.ptr)
return;
- }
-
switch((powermode_t)g->p.ptr) {
default:
return;
@@ -329,11 +327,8 @@ LLDSPEC color_t gdisp_lld_get_pixel_color(GDisplay* g)
return;
case GDISP_CONTROL_ORIENTATION:
- // Don't do anything if it is the same power mode
- if (g->g.Orientation == (orientation_t)g->p.ptr) {
+ if (g->g.Orientation == (orientation_t)g->p.ptr)
return;
- }
-
switch((orientation_t)g->p.ptr) {
case GDISP_ROTATE_0:
case GDISP_ROTATE_180: