mirror of https://github.com/nothings/stb-imv
fix mis-blocked stbi_only
This commit is contained in:
parent
2003c0d64a
commit
f7468cec5c
5
imv.c
5
imv.c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue