aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp/framebuffer/gdisp_lld_framebuffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gdisp/framebuffer/gdisp_lld_framebuffer.c')
-rw-r--r--drivers/gdisp/framebuffer/gdisp_lld_framebuffer.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gdisp/framebuffer/gdisp_lld_framebuffer.c b/drivers/gdisp/framebuffer/gdisp_lld_framebuffer.c
index ca0153e7..fb09d1c9 100644
--- a/drivers/gdisp/framebuffer/gdisp_lld_framebuffer.c
+++ b/drivers/gdisp/framebuffer/gdisp_lld_framebuffer.c
@@ -45,7 +45,7 @@ LLDSPEC gBool gdisp_lld_init(GDisplay *g) {
// Initialize the GDISP structure
g->g.Orientation = GDISP_ROTATE_0;
- g->g.Powermode = powerOn;
+ g->g.Powermode = gPowerOn;
g->board = 0; // preinitialize
board_init(g, &((fbPriv *)g->priv)->fbi);
@@ -116,16 +116,16 @@ LLDSPEC gColor gdisp_lld_get_pixel_color(GDisplay *g) {
LLDSPEC void gdisp_lld_control(GDisplay *g) {
switch(g->p.x) {
case GDISP_CONTROL_POWER:
- if (g->g.Powermode == (powermode_t)g->p.ptr)
+ if (g->g.Powermode == (gPowermode)g->p.ptr)
return;
- switch((powermode_t)g->p.ptr) {
- case powerOff: case powerOn: case powerSleep: case powerDeepSleep:
- board_power(g, (powermode_t)g->p.ptr);
+ switch((gPowermode)g->p.ptr) {
+ case gPowerOff: case gPowerOn: case gPowerSleep: case gPowerDeepSleep:
+ board_power(g, (gPowermode)g->p.ptr);
break;
default:
return;
}
- g->g.Powermode = (powermode_t)g->p.ptr;
+ g->g.Powermode = (gPowermode)g->p.ptr;
return;
case GDISP_CONTROL_ORIENTATION: