diff options
Diffstat (limited to 'src/gdisp/gdisp_pixmap.c')
-rw-r--r-- | src/gdisp/gdisp_pixmap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gdisp/gdisp_pixmap.c b/src/gdisp/gdisp_pixmap.c index 9f59ce40..8fbccad4 100644 --- a/src/gdisp/gdisp_pixmap.c +++ b/src/gdisp/gdisp_pixmap.c @@ -46,7 +46,7 @@ typedef struct pixmap { #if GDISP_NEED_PIXMAP_IMAGE uint8_t imghdr[8]; // This field must come just before the data member. #endif - color_t pixels[1]; // We really want pixels[0] but some compilers don't allow that even though it is C standard. + gColor pixels[1]; // We really want pixels[0] but some compilers don't allow that even though it is C standard. } pixmap; GDisplay *gdispPixmapCreate(gCoord width, gCoord height) { @@ -55,7 +55,7 @@ GDisplay *gdispPixmapCreate(gCoord width, gCoord height) { unsigned i; // Calculate the size of the display surface in bytes - i = width*height*sizeof(color_t); + i = width*height*sizeof(gColor); if (i < 2*sizeof(gCoord)) i = 2*sizeof(gCoord); @@ -159,7 +159,7 @@ LLDSPEC void gdisp_lld_draw_pixel(GDisplay *g) { ((pixmap *)(g)->priv)->pixels[pos] = g->p.color; } -LLDSPEC color_t gdisp_lld_get_pixel_color(GDisplay *g) { +LLDSPEC gColor gdisp_lld_get_pixel_color(GDisplay *g) { unsigned pos; #if GDISP_NEED_CONTROL |