Mercurial > hg > dmlib
comparison src/dmimage.c @ 1165:737ae4718c8f
Use dmMemset, dmMalloc, dmRealloc and dmFree directly.
Use Uint8 instead of unsigned char.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 05 Mar 2015 07:27:54 +0200 |
parents | d46966ad3b08 |
children | 2b48b7fe95bc |
comparison
equal
deleted
inserted
replaced
1164:fa59b65149e6 | 1165:737ae4718c8f |
---|---|
19 #endif | 19 #endif |
20 #define STBI_FAILURE_USERMSG 1 | 20 #define STBI_FAILURE_USERMSG 1 |
21 | 21 |
22 #define STB_IMAGE_IMPLEMENTATION 1 | 22 #define STB_IMAGE_IMPLEMENTATION 1 |
23 #define STBI_NO_STDIO 1 | 23 #define STBI_NO_STDIO 1 |
24 | |
25 #define STBI_MALLOC(sz) dmMalloc(sz) | |
26 #define STBI_REALLOC(p,sz) dmRealloc(p,sz) | |
27 #define STBI_FREE(p) dmFree(p) | |
28 | 24 |
29 #include "stb_image.c" | 25 #include "stb_image.c" |
30 | 26 |
31 | 27 |
32 static Uint32 | 28 static Uint32 |