From 24d3f3fcb2894df110a17317260b8705d68d22ec Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Wed, 15 Apr 2015 17:17:06 +0800 Subject: gdk-win32: Clean Up A Bit As GLib dropped XP support some time ago [1][2], and the current git master already depends on a GLib release that is well after it dropped XP support, clean up the code a bit as we are assured that the code will run on XP and later, plus, we are dropping XP support during this cycle (i.e. very soon). https://bugzilla.gnome.org/show_bug.cgi?id=741849 [1]: https://git.gnome.org/browse/glib/commit/?id=80c24d36f2525d83e458ebbdf62fdbd085945a02 [2]: https://git.gnome.org/browse/glib/commit/?id=731b46990896665a8107535080bb075a6e18b6f7 --- gdk/win32/gdkcursor-win32.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'gdk/win32/gdkcursor-win32.c') diff --git a/gdk/win32/gdkcursor-win32.c b/gdk/win32/gdkcursor-win32.c index 28b2745266..eb4a454228 100644 --- a/gdk/win32/gdkcursor-win32.c +++ b/gdk/win32/gdkcursor-win32.c @@ -821,22 +821,7 @@ _gdk_win32_pixbuf_to_hcursor (GdkPixbuf *pixbuf, gboolean _gdk_win32_pixbuf_to_hicon_supports_alpha (void) { - static gboolean is_win_xp=FALSE, is_win_xp_checked=FALSE; - - if (!is_win_xp_checked) - { - OSVERSIONINFO version; - - is_win_xp_checked = TRUE; - - memset (&version, 0, sizeof (version)); - version.dwOSVersionInfoSize = sizeof (version); - is_win_xp = GetVersionEx (&version) - && version.dwPlatformId == VER_PLATFORM_WIN32_NT - && (version.dwMajorVersion > 5 - || (version.dwMajorVersion == 5 && version.dwMinorVersion >= 1)); - } - return is_win_xp; + return TRUE; } HICON -- cgit v1.2.1