diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gdisp/gdisp_image_gif.c | 1 | ||||
-rw-r--r-- | src/gos/gos_chibios.c | 4 | ||||
-rw-r--r-- | src/gos/gos_raw32.h | 7 |
3 files changed, 10 insertions, 2 deletions
diff --git a/src/gdisp/gdisp_image_gif.c b/src/gdisp/gdisp_image_gif.c index d5c6b3ca..88dac4c8 100644 --- a/src/gdisp/gdisp_image_gif.c +++ b/src/gdisp/gdisp_image_gif.c @@ -687,6 +687,7 @@ gdispImageError gdispImageCache_GIF(gdispImage *img) { // Check for interlacing cnt = 0; + q = 0; if (cache->frame.flags & GIFL_INTERLACE) { // Every 8th row starting at row 0 for(p=cache->imagebits, my=0; my < cache->frame.height; my+=8, p += cache->frame.width*7) { diff --git a/src/gos/gos_chibios.c b/src/gos/gos_chibios.c index eb839dc6..d650caa0 100644 --- a/src/gos/gos_chibios.c +++ b/src/gos/gos_chibios.c @@ -158,13 +158,13 @@ gfxThreadHandle gfxThreadCreate(void *stackarea, size_t stacksz, threadpriority_ { if (!stackarea) { if (!stacksz) stacksz = 256; - return chThdCreateFromHeap(0, stacksz, prio, fn, param); + return chThdCreateFromHeap(0, stacksz, prio, (tfunc_t)fn, param); } if (!stacksz) return 0; - return chThdCreateStatic(stackarea, stacksz, prio, fn, param); + return chThdCreateStatic(stackarea, stacksz, prio, (tfunc_t)fn, param); } #endif /* GFX_USE_OS_CHIBIOS */ diff --git a/src/gos/gos_raw32.h b/src/gos/gos_raw32.h index 0fca9223..2937e52b 100644 --- a/src/gos/gos_raw32.h +++ b/src/gos/gos_raw32.h @@ -33,6 +33,13 @@ typedef unsigned char bool_t; #if __STDC_VERSION__ >= 199901L #include <stdint.h> +#elif defined(__GNUC__) || defined(__GNUG__) + typedef __INT8_TYPE__ int8_t; + typedef __UINT8_TYPE__ uint8_t; + typedef __INT16_TYPE__ int16_t; + typedef __UINT16_TYPE__ uint16_t; + typedef __INT32_TYPE__ int32_t; + typedef __UINT32_TYPE__ uint32_t; #else typedef signed char int8_t; typedef unsigned char uint8_t; |