forked from AuroraMiddleware/gtk
Revert "gdk-win32: Clean Up A Bit"
This reverts commit 24d3f3fcb2
.
Sorry, I am going to re-commit this very shortly with a new
commit message, as I found the commit message to be quite
wrong and misleading.
This commit is contained in:
parent
b85f0ccc67
commit
c6a8ead931
@ -821,7 +821,22 @@ _gdk_win32_pixbuf_to_hcursor (GdkPixbuf *pixbuf,
|
||||
gboolean
|
||||
_gdk_win32_pixbuf_to_hicon_supports_alpha (void)
|
||||
{
|
||||
return TRUE;
|
||||
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;
|
||||
}
|
||||
|
||||
HICON
|
||||
|
@ -375,8 +375,12 @@ RegisterGdkClass (GdkWindowType wtype, GdkWindowTypeHint wtype_hint)
|
||||
{
|
||||
wcl.lpszClassName = L"gdkWindowTempShadow";
|
||||
wcl.style |= CS_SAVEBITS;
|
||||
wcl.style |= 0x00020000; /* CS_DROPSHADOW */
|
||||
|
||||
if (LOBYTE (g_win32_get_windows_version()) > 0x05 ||
|
||||
LOWORD (g_win32_get_windows_version()) == 0x0105)
|
||||
{
|
||||
/* Windows XP (5.1) or above */
|
||||
wcl.style |= 0x00020000; /* CS_DROPSHADOW */
|
||||
}
|
||||
ONCE_PER_CLASS ();
|
||||
klassTEMPSHADOW = RegisterClassExW (&wcl);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user