Mercurial > hg > dmlib
changeset 1135:73808dce89e6
Disable formats other than PNG and JPEG from stb_image.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 04 Mar 2015 08:50:08 +0200 |
parents | d0898867ec4c |
children | 2cb0955b50f6 |
files | src/dmimage.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dmimage.c Wed Mar 04 08:38:19 2015 +0200 +++ b/src/dmimage.c Wed Mar 04 08:50:08 2015 +0200 @@ -7,6 +7,12 @@ #include "dmimage.h" #include "dmzlib.h" +// Formats +#define STBI_ONLY_JPEG 1 +#define STBI_ONLY_PNG 1 +//#define STBI_NO_HDR 1 + +// Other options, etc. #ifndef DM_DEBUG #define STBI_NO_FAILURE_STRINGS 1 #endif @@ -14,7 +20,6 @@ #define STB_IMAGE_IMPLEMENTATION 1 #define STBI_NO_STDIO 1 -#define STBI_NO_HDR 1 #define STBI_MALLOC(sz) dmMalloc(sz) #define STBI_REALLOC(p,sz) dmRealloc(p,sz)