diff options
author | Руслан Ижбулатов <lrn1986@gmail.com> | 2014-04-10 17:58:58 +0000 |
---|---|---|
committer | Руслан Ижбулатов <lrn1986@gmail.com> | 2014-04-10 17:58:58 +0000 |
commit | fee41fb61626ff87981df98e8faa258039e08ecf (patch) | |
tree | 30ec75a47e750eea37dde33392b6f99fc8788e72 /gdk/win32/gdkmain-win32.c | |
parent | 5c6e967b1faf37396ec87bc6a8993dd6666d6187 (diff) | |
download | gtk+-fee41fb61626ff87981df98e8faa258039e08ecf.tar.gz |
Revert "W32: Implement composition check for GDK"
This reverts commit 7ae5a56948e5124eabd558438ff29187f5721819.
Pushed by accident.
Diffstat (limited to 'gdk/win32/gdkmain-win32.c')
-rw-r--r-- | gdk/win32/gdkmain-win32.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/gdk/win32/gdkmain-win32.c b/gdk/win32/gdkmain-win32.c index 5011817f22..905c729fab 100644 --- a/gdk/win32/gdkmain-win32.c +++ b/gdk/win32/gdkmain-win32.c @@ -48,12 +48,6 @@ static gboolean gdk_synchronize = FALSE; static gboolean dummy; -#ifdef HAVE_W32_DWM -static HMODULE dwmdll = NULL; -PFN_DwmEnableBlurBehindWindow dwmEnableBlurBehindWindow = NULL; -PFN_DwmIsCompositionEnabled dwmIsCompositionEnabled = NULL; -#endif - const GOptionEntry _gdk_windowing_args[] = { { "sync", 0, 0, G_OPTION_ARG_NONE, &gdk_synchronize, /* Description of --sync in --help output */ N_("Don't batch GDI requests"), NULL }, @@ -138,29 +132,6 @@ _gdk_win32_windowing_init (void) _cf_text_html = RegisterClipboardFormat ("text/html"); _gdk_win32_selection_init (); - -/* HAVE_W32_DWM means that we have necessary declarations at compile-time, - * but we'd still like to be able to run on XP, so we'll load the functions - * we need at runtime. - */ -#ifdef HAVE_W32_DWM - if (dwmdll == NULL) - { - dwmdll = LoadLibraryA ("dwmapi.dll"); - if (dwmdll == NULL) - { - /* This will make sure that we only try this once */ - dwmdll = INVALID_HANDLE_VALUE; - } - else - { - dwmEnableBlurBehindWindow = (PFN_DwmEnableBlurBehindWindow) - GetProcAddress (dwmdll, "DwmEnableBlurBehindWindow"); - dwmIsCompositionEnabled = (PFN_DwmIsCompositionEnabled) - GetProcAddress (dwmdll, "DwmIsCompositionEnabled"); - } - } -#endif } void |