Kaydet (Commit) b464ca01 authored tarafından Caolán McNamara's avatar Caolán McNamara

make vcl compiler under mingw again

Change-Id: Ie4d85ca344163807b9455f6305c35327df9fd877
üst 9bb96049
......@@ -31,8 +31,30 @@
#include <comphelper/broadcasthelper.hxx>
#include <map>
#if defined _MSC_VER
#pragma warning(push, 1)
#endif
#ifdef __MINGW32__
#ifdef GetObject
#undef GetObject
#endif
#define GetObject GetObjectA
#endif
#include <gdiplus.h>
#ifdef __MINGW32__
#ifdef GetObject
#undef GetObject
#endif
#endif
#if defined _MSC_VER
#pragma warning(pop)
#endif
// ------------------------------------------------------------------
// - Inlines -
......
......@@ -351,7 +351,12 @@ void setInterpolationMode(
if(bSameWidth && bSameHeight)
{
#ifdef __MINGW32__
//Gdiplus::InterpolationModeInvalid is missing on mingw
rGraphics.SetInterpolationMode(Gdiplus::InterpolationModeDefault);
#else
rGraphics.SetInterpolationMode(Gdiplus::InterpolationModeInvalid);
#endif
}
else if(rDestWidth > rSrcWidth && rDestHeight > rSrcHeight)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment