diff options
Diffstat (limited to 'drivers/gdisp')
-rw-r--r-- | drivers/gdisp/HX8347D/gdisp_lld.c | 3 | ||||
-rw-r--r-- | drivers/gdisp/ILI9320/gdisp_lld.c | 2 | ||||
-rw-r--r-- | drivers/gdisp/ILI9325/gdisp_lld.c | 3 | ||||
-rw-r--r-- | drivers/gdisp/ILI9481/gdisp_lld.c | 2 | ||||
-rw-r--r-- | drivers/gdisp/RA8875/gdisp_lld.c | 2 | ||||
-rw-r--r-- | drivers/gdisp/S6D1121/gdisp_lld.c | 2 | ||||
-rw-r--r-- | drivers/gdisp/SSD1306/gdisp_lld.c | 2 | ||||
-rw-r--r-- | drivers/gdisp/SSD1963/gdisp_lld.c | 2 | ||||
-rw-r--r-- | drivers/gdisp/SSD2119/gdisp_lld.c | 2 |
9 files changed, 10 insertions, 10 deletions
diff --git a/drivers/gdisp/HX8347D/gdisp_lld.c b/drivers/gdisp/HX8347D/gdisp_lld.c index 3851c8e1..ab976db0 100644 --- a/drivers/gdisp/HX8347D/gdisp_lld.c +++ b/drivers/gdisp/HX8347D/gdisp_lld.c @@ -217,8 +217,9 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { default:
return;
}
- g->g.Orientation = (orientation_t)value;
+ g->g.Orientation = (orientation_t)g->p.ptr;
return;
+
case GDISP_CONTROL_BACKLIGHT:
if ((unsigned)g->p.ptr > 100)
g->p.ptr = (void *)100;
diff --git a/drivers/gdisp/ILI9320/gdisp_lld.c b/drivers/gdisp/ILI9320/gdisp_lld.c index bf82a88a..6d7815cb 100644 --- a/drivers/gdisp/ILI9320/gdisp_lld.c +++ b/drivers/gdisp/ILI9320/gdisp_lld.c @@ -354,7 +354,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { default: return; } - g->g.Orientation = (orientation_t)value; + g->g.Orientation = (orientation_t)g->p.ptr; return; case GDISP_CONTROL_BACKLIGHT: diff --git a/drivers/gdisp/ILI9325/gdisp_lld.c b/drivers/gdisp/ILI9325/gdisp_lld.c index 6bb649b1..75b4cd13 100644 --- a/drivers/gdisp/ILI9325/gdisp_lld.c +++ b/drivers/gdisp/ILI9325/gdisp_lld.c @@ -346,7 +346,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { return; } - g->g.Orientation = (orientation_t)value; + g->g.Orientation = (orientation_t)g->p.ptr; return; case GDISP_CONTROL_BACKLIGHT: @@ -360,7 +360,6 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { return; } } - #endif #endif /* GFX_USE_GDISP */ diff --git a/drivers/gdisp/ILI9481/gdisp_lld.c b/drivers/gdisp/ILI9481/gdisp_lld.c index 5af12986..49e28b23 100644 --- a/drivers/gdisp/ILI9481/gdisp_lld.c +++ b/drivers/gdisp/ILI9481/gdisp_lld.c @@ -311,7 +311,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { default: return; } - g->g.Orientation = (orientation_t)value; + g->g.Orientation = (orientation_t)g->p.ptr; return; //case GDISP_CONTROL_BACKLIGHT: //case GDISP_CONTROL_CONTRAST: diff --git a/drivers/gdisp/RA8875/gdisp_lld.c b/drivers/gdisp/RA8875/gdisp_lld.c index 7916ef3b..b0508b58 100644 --- a/drivers/gdisp/RA8875/gdisp_lld.c +++ b/drivers/gdisp/RA8875/gdisp_lld.c @@ -260,7 +260,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { default: return; } - g->g.Orientation = (orientation_t)value; + g->g.Orientation = (orientation_t)g->p.ptr; return; #endif diff --git a/drivers/gdisp/S6D1121/gdisp_lld.c b/drivers/gdisp/S6D1121/gdisp_lld.c index f7e12591..df9f01a7 100644 --- a/drivers/gdisp/S6D1121/gdisp_lld.c +++ b/drivers/gdisp/S6D1121/gdisp_lld.c @@ -313,7 +313,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { default: return; } - g->g.Orientation = (orientation_t)value; + g->g.Orientation = (orientation_t)g->p.ptr; return; case GDISP_CONTROL_BACKLIGHT: diff --git a/drivers/gdisp/SSD1306/gdisp_lld.c b/drivers/gdisp/SSD1306/gdisp_lld.c index 36ba9686..b0834193 100644 --- a/drivers/gdisp/SSD1306/gdisp_lld.c +++ b/drivers/gdisp/SSD1306/gdisp_lld.c @@ -196,7 +196,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { default:
return;
}
- g->g.Orientation = (orientation_t)value;
+ g->g.Orientation = (orientation_t)g->p.ptr;
return;
case GDISP_CONTROL_CONTRAST:
diff --git a/drivers/gdisp/SSD1963/gdisp_lld.c b/drivers/gdisp/SSD1963/gdisp_lld.c index 11240568..b94c1a40 100644 --- a/drivers/gdisp/SSD1963/gdisp_lld.c +++ b/drivers/gdisp/SSD1963/gdisp_lld.c @@ -264,7 +264,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { default: return; } - g->g.Orientation = (orientation_t)value; + g->g.Orientation = (orientation_t)g->p.ptr; return; case GDISP_CONTROL_BACKLIGHT: diff --git a/drivers/gdisp/SSD2119/gdisp_lld.c b/drivers/gdisp/SSD2119/gdisp_lld.c index 548d2dd1..e3a2329a 100644 --- a/drivers/gdisp/SSD2119/gdisp_lld.c +++ b/drivers/gdisp/SSD2119/gdisp_lld.c @@ -735,7 +735,7 @@ void gdisp_lld_draw_pixel(coord_t x, coord_t y, color_t color) { GDISP.clipx1 = GDISP.Width; GDISP.clipy1 = GDISP.Height; #endif - GDISP.Orientation = (gdisp_orientation_t)value; + g->g.Orientation = (orientation_t)g->p.ptr; return; case GDISP_CONTROL_BACKLIGHT: |