diff options
Diffstat (limited to 'src/gdisp/gdisp_image.c')
-rw-r--r-- | src/gdisp/gdisp_image.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gdisp/gdisp_image.c b/src/gdisp/gdisp_image.c index 03f3523e..dff13932 100644 --- a/src/gdisp/gdisp_image.c +++ b/src/gdisp/gdisp_image.c @@ -16,7 +16,7 @@ extern void gdispImageClose_NATIVE(gdispImage *img); extern gdispImageError gdispImageCache_NATIVE(gdispImage *img); extern gdispImageError gdispGImageDraw_NATIVE(GDisplay *g, gdispImage *img, gCoord x, gCoord y, gCoord cx, gCoord cy, gCoord sx, gCoord sy); - extern delaytime_t gdispImageNext_NATIVE(gdispImage *img); + extern gDelay gdispImageNext_NATIVE(gdispImage *img); #endif #if GDISP_NEED_IMAGE_GIF @@ -24,7 +24,7 @@ extern void gdispImageClose_GIF(gdispImage *img); extern gdispImageError gdispImageCache_GIF(gdispImage *img); extern gdispImageError gdispGImageDraw_GIF(GDisplay *g, gdispImage *img, gCoord x, gCoord y, gCoord cx, gCoord cy, gCoord sx, gCoord sy); - extern delaytime_t gdispImageNext_GIF(gdispImage *img); + extern gDelay gdispImageNext_GIF(gdispImage *img); #endif #if GDISP_NEED_IMAGE_BMP @@ -32,7 +32,7 @@ extern void gdispImageClose_BMP(gdispImage *img); extern gdispImageError gdispImageCache_BMP(gdispImage *img); extern gdispImageError gdispGImageDraw_BMP(GDisplay *g, gdispImage *img, gCoord x, gCoord y, gCoord cx, gCoord cy, gCoord sx, gCoord sy); - extern delaytime_t gdispImageNext_BMP(gdispImage *img); + extern gDelay gdispImageNext_BMP(gdispImage *img); extern uint16_t gdispImageGetPaletteSize_BMP(gdispImage *img); extern gColor gdispImageGetPalette_BMP(gdispImage *img, uint16_t index); extern gBool gdispImageAdjustPalette_BMP(gdispImage *img, uint16_t index, gColor newColor); @@ -43,7 +43,7 @@ extern void gdispImageClose_JPG(gdispImage *img); extern gdispImageError gdispImageCache_JPG(gdispImage *img); extern gdispImageError gdispGImageDraw_JPG(GDisplay *g, gdispImage *img, gCoord x, gCoord y, gCoord cx, gCoord cy, gCoord sx, gCoord sy); - extern delaytime_t gdispImageNext_JPG(gdispImage *img); + extern gDelay gdispImageNext_JPG(gdispImage *img); #endif #if GDISP_NEED_IMAGE_PNG @@ -51,7 +51,7 @@ extern void gdispImageClose_PNG(gdispImage *img); extern gdispImageError gdispImageCache_PNG(gdispImage *img); extern gdispImageError gdispGImageDraw_PNG(GDisplay *g, gdispImage *img, gCoord x, gCoord y, gCoord cx, gCoord cy, gCoord sx, gCoord sy); - extern delaytime_t gdispImageNext_PNG(gdispImage *img); + extern gDelay gdispImageNext_PNG(gdispImage *img); #endif /* The structure defining the routines for image drawing */ @@ -64,7 +64,7 @@ typedef struct gdispImageHandlers { gCoord x, gCoord y, gCoord cx, gCoord cy, gCoord sx, gCoord sy); /* The draw function */ - delaytime_t (*next)(gdispImage *img); /* The next frame function */ + gDelay (*next)(gdispImage *img); /* The next frame function */ uint16_t (*getPaletteSize)(gdispImage *img); /* Retrieve the size of the palette (number of entries) */ gColor (*getPalette)(gdispImage *img, uint16_t index); /* Retrieve a specific color value of the palette */ gBool (*adjustPalette)(gdispImage *img, uint16_t index, gColor newColor); /* Replace a color value in the palette */ @@ -186,7 +186,7 @@ gdispImageError gdispGImageDraw(GDisplay *g, gdispImage *img, gCoord x, gCoord y return img->fns->draw(g, img, x, y, cx, cy, sx, sy); } -delaytime_t gdispImageNext(gdispImage *img) { +gDelay gdispImageNext(gdispImage *img) { if (!img) return GDISP_IMAGE_ERR_NULLPOINTER; if (!img->fns) return GDISP_IMAGE_ERR_BADFORMAT; return img->fns->next(img); |