Fix typos in drivers
This commit is contained in:
parent
22b59b8b4f
commit
27b5383c1b
10 changed files with 11 additions and 10 deletions
|
@ -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;
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -2313,6 +2313,7 @@ void gdispGBlitArea(GDisplay *g, coord_t x, coord_t y, coord_t cx, coord_t cy, c
|
|||
}
|
||||
#else
|
||||
void gdispGControl(GDisplay *g, unsigned what, void *value) {
|
||||
(void)g;
|
||||
(void)what;
|
||||
(void)value;
|
||||
/* Ignore everything */
|
||||
|
|
Loading…
Add table
Reference in a new issue