Mercurial > hg > dmlib
diff libgfx.h @ 460:0af039b6c0ae
Improve transparent color handling.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 04 Nov 2012 13:57:03 +0200 |
parents | f7c9d1619c74 |
children | ab401a5087f9 |
line wrap: on
line diff
--- a/libgfx.h Sun Nov 04 12:28:05 2012 +0200 +++ b/libgfx.h Sun Nov 04 13:57:03 2012 +0200 @@ -40,7 +40,7 @@ // RGBx color struct typedef struct { - Uint8 r, g, b, x; + Uint8 r, g, b, a; } DMColor; @@ -49,7 +49,7 @@ { int width, height, pitch; BOOL constpal; - int ncolors, ctrans; + int ncolors, ctransp; DMColor *pal; Uint8 *data; } DMImage;