Compile fix: MinGW.
This commit is contained in:
parent
8ab2f3d9bd
commit
48b1322df3
@ -123,6 +123,10 @@ void dumpClip(int width, int height, const QClipData *clip);
|
|||||||
static inline bool winClearTypeFontsEnabled()
|
static inline bool winClearTypeFontsEnabled()
|
||||||
{
|
{
|
||||||
UINT result = 0;
|
UINT result = 0;
|
||||||
|
#if !defined(SPI_GETFONTSMOOTHINGTYPE) // MinGW
|
||||||
|
# define SPI_GETFONTSMOOTHINGTYPE 0x200A
|
||||||
|
# define FE_FONTSMOOTHINGCLEARTYPE 0x002
|
||||||
|
#endif
|
||||||
SystemParametersInfo(SPI_GETFONTSMOOTHINGTYPE, 0, &result, 0);
|
SystemParametersInfo(SPI_GETFONTSMOOTHINGTYPE, 0, &result, 0);
|
||||||
return result == FE_FONTSMOOTHINGCLEARTYPE;
|
return result == FE_FONTSMOOTHINGCLEARTYPE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user