4d4c0c47811a5c33fec75e98a44fc185f09941d4 hiram Thu Nov 21 13:57:01 2013 -0800 there is a macro INLINE for static inline refs #12189 diff --git src/lib/memgfx.c src/lib/memgfx.c index ca8a316..058abcc 100644 --- src/lib/memgfx.c +++ src/lib/memgfx.c @@ -400,31 +400,31 @@ { case MG_WRITE_MODE_NORMAL: { mgDrawBoxNormal(mg,x,y, width, height, color); } break; case MG_WRITE_MODE_MULTIPLY: { mgDrawBoxMultiply(mg,x,y, width, height, color); } break; } } -static inline void mixDot(struct memGfx *img, int x, int y, float frac, Color col) +INLINE void mixDot(struct memGfx *img, int x, int y, float frac, Color col) /* Puts a single dot on the image, mixing it with what is already there * based on the frac argument. */ { if ((x < img->clipMinX) || (x > img->clipMaxX) || (y < img->clipMinY) || (y > img->clipMaxY)) return; Color *pt = _mgPixAdr(img,x,y); float invFrac = 1 - frac; int r = COLOR_32_RED(*pt) * invFrac + COLOR_32_RED(col) * frac; int g = COLOR_32_GREEN(*pt) * invFrac + COLOR_32_GREEN(col) * frac; int b = COLOR_32_BLUE(*pt) * invFrac + COLOR_32_BLUE(col) * frac; mgPutDot(img,x,y,MAKECOLOR_32(r,g,b)); }