fix mis-blocked stbi_only

This commit is contained in:
nothings.org 2007-07-31 05:34:56 +00:00
parent 2003c0d64a
commit f7468cec5c
1 changed files with 9 additions and 10 deletions

5
imv.c
View File

@ -41,7 +41,7 @@ typedef int Bool;
// general configuration options
#define USE_GDIPLUS
#define USE_FREEIMAGE
//#define USE_FREEIMAGE
// size of border in pixels
#define FRAME 3
@ -3360,7 +3360,7 @@ static Bool LoadGdiplus(void)
GdipBitmapLockBits = (GdipBitmapLockBitsProc)GpFunc("GdipBitmapLockBits");
GdipBitmapUnlockBits = (GdipBitmapUnlockBitsProc)GpFunc("GdipBitmapUnlockBits");
if (!GdiplusPresent) {
if (!only_stbi) {
if (!only_stbi)
error("Invalid GdiPlus.dll; disabling GDI+ support.");
} else {
ULONG token;
@ -3371,7 +3371,6 @@ static Bool LoadGdiplus(void)
error("Failed to initialize GdiPlus.dll; disabling GDI+ support.");
}
}
}
return GdiplusPresent;
}