Check G_WIN32_IS_NT_BASED() first, so we can pretend being on Win9x by
2005-11-06 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkcursor-win32.c (_gdk_win32_pixbuf_to_hicon_supports_alpha): Check G_WIN32_IS_NT_BASED() first, so we can pretend being on Win9x by setting the G_WIN32_PRETEND_WIN9X environment variable.
This commit is contained in:
committed by
Tor Lillqvist
parent
0c5a240d95
commit
a7b56ed43a
@@ -4,6 +4,9 @@
|
||||
the Win32 backend, check that GdkDisplay* parameters are equal to
|
||||
_gdk_display instead of using the unnecessarily general
|
||||
GDK_IS_DISPLAY().
|
||||
(_gdk_win32_pixbuf_to_hicon_supports_alpha): Check
|
||||
G_WIN32_IS_NT_BASED() first, so we can pretend being on Win9x
|
||||
by setting the G_WIN32_PRETEND_WIN9X environment variable.
|
||||
|
||||
Make icon masks work on Win98 (#320152, Peter Zelezny)
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
the Win32 backend, check that GdkDisplay* parameters are equal to
|
||||
_gdk_display instead of using the unnecessarily general
|
||||
GDK_IS_DISPLAY().
|
||||
(_gdk_win32_pixbuf_to_hicon_supports_alpha): Check
|
||||
G_WIN32_IS_NT_BASED() first, so we can pretend being on Win9x
|
||||
by setting the G_WIN32_PRETEND_WIN9X environment variable.
|
||||
|
||||
Make icon masks work on Win98 (#320152, Peter Zelezny)
|
||||
|
||||
|
||||
@@ -834,15 +834,21 @@ _gdk_win32_pixbuf_to_hicon_supports_alpha (void)
|
||||
|
||||
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));
|
||||
|
||||
if (!G_WIN32_IS_NT_BASED ())
|
||||
is_win_xp = FALSE;
|
||||
else
|
||||
{
|
||||
OSVERSIONINFO version;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user