Fix typos in drivers

ugfx_release_2.6
inmarket 2013-10-22 15:52:31 +10:00
parent 22b59b8b4f
commit 27b5383c1b
10 changed files with 11 additions and 10 deletions

View File

@ -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;

View File

@ -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:

View File

@ -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 */

View File

@ -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:

View File

@ -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

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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 */