diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2011-05-04 07:10:45 (GMT) |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2011-05-04 07:14:12 (GMT) |
commit | 4c3630c1fcd2b3008f540a8906a19c533604f36a (patch) | |
tree | 4b289e05c56f9ec713ca3509b0e7a20271ff7fd5 | |
parent | 79ba7cceca5e4029876ace2121edd25b08ae14ce (diff) | |
download | Qt-4c3630c1fcd2b3008f540a8906a19c533604f36a.zip Qt-4c3630c1fcd2b3008f540a8906a19c533604f36a.tar.gz Qt-4c3630c1fcd2b3008f540a8906a19c533604f36a.tar.bz2 |
Compile on Windows
The SPI_FONTSMOOTHINGCONTRAST macro is not defined everywhere. When
the code was refactored, the workaround for this was lost. This
resubmits the work-around to make it compile.
Reviewed-by: Samuel
-rw-r--r-- | src/gui/kernel/qapplication_win.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qapplication_win.cpp b/src/gui/kernel/qapplication_win.cpp index a3a9ff1..63e2319 100644 --- a/src/gui/kernel/qapplication_win.cpp +++ b/src/gui/kernel/qapplication_win.cpp @@ -656,7 +656,7 @@ static void qt_win_read_cleartype_settings() #endif int winSmooth; - if (SystemParametersInfo(SPI_GETFONTSMOOTHINGCONTRAST, 0, &winSmooth, 0)) { + if (SystemParametersInfo(0x200C /* SPI_GETFONTSMOOTHINGCONTRAST */, 0, &winSmooth, 0)) { qt_fontsmoothing_gamma = winSmooth / qreal(1000.0); } else { qt_fontsmoothing_gamma = 1.0; |