summaryrefslogtreecommitdiff
path: root/pango/pangowin32.h
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2002-03-17 21:25:16 +0000
committerTor Lillqvist <tml@src.gnome.org>2002-03-17 21:25:16 +0000
commit87d7dc354f46b00e4835a7136b56a35edada5bf2 (patch)
tree7808712bf915719102f6f3dc953ed4753f8e8128 /pango/pangowin32.h
parente3bc68e7ee786503c41846c7f38e8d8afb9f0232 (diff)
downloadpango-87d7dc354f46b00e4835a7136b56a35edada5bf2.tar.gz
Add pango_win32_os_version_info variable, an OSVERSIONINFO struct.
2002-03-17 Tor Lillqvist <tml@iki.fi> * pango/pangowin32-private.h: Add pango_win32_os_version_info variable, an OSVERSIONINFO struct. * pango/pangowin32.c: Initialise it. * pango/pangowin32.h: Set _WIN32_WINNT to 0x0501 before including <windows.h> to get the ClearType-related macros defined (if recent enough headers are used). * pango/pangowin32-fontcache.c (pango_win32_font_cache_load): Set desired font quality to CLEARTYPE_QUALITY if on XP (or later), and the system settings ask for ClearType.
Diffstat (limited to 'pango/pangowin32.h')
-rw-r--r--pango/pangowin32.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/pango/pangowin32.h b/pango/pangowin32.h
index f060bdbb..fc5e0955 100644
--- a/pango/pangowin32.h
+++ b/pango/pangowin32.h
@@ -31,7 +31,9 @@
G_BEGIN_DECLS
#define STRICT
+#define _WIN32_WINNT 0x0501 /* To get ClearType-related macros */
#include <windows.h>
+#undef STRICT
#define PANGO_RENDER_TYPE_WIN32 "PangoRenderWin32"