Compile fix: MinGW.

This commit is contained in:
Friedemann Kleint 2011-06-24 14:37:14 +02:00
parent 8ab2f3d9bd
commit 48b1322df3

View File

@ -123,6 +123,10 @@ void dumpClip(int width, int height, const QClipData *clip);
static inline bool winClearTypeFontsEnabled()
{
UINT result = 0;
#if !defined(SPI_GETFONTSMOOTHINGTYPE) // MinGW
# define SPI_GETFONTSMOOTHINGTYPE 0x200A
# define FE_FONTSMOOTHINGCLEARTYPE 0x002
#endif
SystemParametersInfo(SPI_GETFONTSMOOTHINGTYPE, 0, &result, 0);
return result == FE_FONTSMOOTHINGCLEARTYPE;
}