summaryrefslogtreecommitdiff
path: root/pango/pangowin32-fontcache.c
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2019-07-22 23:44:33 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2019-07-25 10:51:22 +0800
commit47310a9dee07d092142be15a2146fe90ab3ad08a (patch)
tree14253d85deb3e33f2fa33e579e3ed5d8af949ca2 /pango/pangowin32-fontcache.c
parent338495ce613f802b051bca0c32a96c5e3ff759e6 (diff)
downloadpango-47310a9dee07d092142be15a2146fe90ab3ad08a.tar.gz
PangoWin32: Drop _pango_win32_os_version_info
We don't need this anymore since we need Vista or later to run.
Diffstat (limited to 'pango/pangowin32-fontcache.c')
-rw-r--r--pango/pangowin32-fontcache.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/pango/pangowin32-fontcache.c b/pango/pangowin32-fontcache.c
index b8bc92dc..1a1a1cef 100644
--- a/pango/pangowin32-fontcache.c
+++ b/pango/pangowin32-fontcache.c
@@ -245,13 +245,8 @@ pango_win32_font_cache_loadw (PangoWin32FontCache *cache,
BOOL font_smoothing;
lf = *lfp;
SystemParametersInfo (SPI_GETFONTSMOOTHING, 0, &font_smoothing, 0);
- /* If on XP or better, try to use ClearType if the global system
- * settings ask for it.
- */
- if (font_smoothing &&
- (_pango_win32_os_version_info.dwMajorVersion > 5 ||
- (_pango_win32_os_version_info.dwMajorVersion == 5 &&
- _pango_win32_os_version_info.dwMinorVersion >= 1)))
+ /* use ClearType if the global system settings ask for it. */
+ if (font_smoothing)
{
UINT smoothing_type;