summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qapplication_win.cpp
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@nokia.com>2009-06-05 13:40:17 (GMT)
committerThomas Hartmann <Thomas.Hartmann@nokia.com>2009-06-05 13:46:27 (GMT)
commit407a77cb2660cf122b08a388216f3a2da8cfd1c3 (patch)
treeb5c609d9fe6ab2974d423212c6153198844e2ef8 /src/gui/kernel/qapplication_win.cpp
parent65f6422401f7dfeb5f3a7fcc3791528b4cf2cee4 (diff)
downloadQt-407a77cb2660cf122b08a388216f3a2da8cfd1c3.zip
Qt-407a77cb2660cf122b08a388216f3a2da8cfd1c3.tar.gz
Qt-407a77cb2660cf122b08a388216f3a2da8cfd1c3.tar.bz2
Fixes anti-aliased text rendering on smartphones (Windows Mobile)
The check for cleartype in qt_win_read_cleartype_settings() was not correct for Windows Mobile For anti-aliased text rendering we also have to use another pixel format for the native image. Task-number: 249642 Reviewed-by: mauricek
Diffstat (limited to 'src/gui/kernel/qapplication_win.cpp')
-rw-r--r--src/gui/kernel/qapplication_win.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication_win.cpp b/src/gui/kernel/qapplication_win.cpp
index 60f3edf..b21eb36 100644
--- a/src/gui/kernel/qapplication_win.cpp
+++ b/src/gui/kernel/qapplication_win.cpp
@@ -625,6 +625,13 @@ static void qt_set_windows_font_resources()
static void qt_win_read_cleartype_settings()
{
+#ifdef Q_OS_WINCE
+ UINT result;
+ BOOL ok;
+ ok = SystemParametersInfo(SPI_GETFONTSMOOTHING, 0, &result, 0);
+ if (ok)
+ qt_cleartype_enabled = result;
+#else
QT_WA({
UINT result;
BOOL ok;
@@ -638,6 +645,7 @@ static void qt_win_read_cleartype_settings()
if (ok)
qt_cleartype_enabled = (result == FE_FONTSMOOTHINGCLEARTYPE);
});
+#endif
}