From 0f7777395b30ea8cec02b3230ed250eee7d34f16 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Sun, 29 Sep 2013 18:23:22 +0200 Subject: [PATCH] GDISP X driver fixes --- drivers/multiple/X/gdisp_lld.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/multiple/X/gdisp_lld.c b/drivers/multiple/X/gdisp_lld.c index 9c6a7123..0e5e03b4 100644 --- a/drivers/multiple/X/gdisp_lld.c +++ b/drivers/multiple/X/gdisp_lld.c @@ -131,7 +131,6 @@ static int FatalXIOError(Display *d) { } LLDSPEC bool_t gdisp_lld_init(GDISPDriver *g) { -{ XSizeHints *pSH; XSetWindowAttributes xa; XTextProperty WindowTitle; @@ -212,7 +211,7 @@ LLDSPEC bool_t gdisp_lld_init(GDISPDriver *g) { gfxThreadClose(hth); /* Initialise the GDISP structure to match */ - g->g.Orientation = g->g_ROTATE_0; + g->g.Orientation = GDISP_ROTATE_0; g->g.Powermode = powerOn; g->g.Backlight = 100; g->g.Contrast = 50; @@ -269,10 +268,10 @@ LLDSPEC void gdisp_lld_draw_pixel(GDISPDriver *g) XImage *img; img = XGetImage (dis, pix, g->p.x, g->p.y, 1, 1, AllPlanes, XYPixmap); - color->pixel = XGetPixel (img, 0, 0); + color.pixel = XGetPixel (img, 0, 0); XFree(img); XQueryColor(dis, cmap, &color); - return RGB2COLOR(c.red>>8, c.green>>8, c.blue>>8); + return RGB2COLOR(color.red>>8, color.green>>8, color.blue>>8); } #endif