[gtk/wip/otte/gleanup: 59/59] gdkdisplay-win32.c: Don't call ReleaseDC() unnecessarily
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/gleanup: 59/59] gdkdisplay-win32.c: Don't call ReleaseDC() unnecessarily
- Date: Tue, 20 Jul 2021 03:21:22 +0000 (UTC)
commit 59095326c3348bd5c7e1a802012a70e5cc334b07
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Mon Jul 19 17:13:53 2021 +0800
gdkdisplay-win32.c: Don't call ReleaseDC() unnecessarily
The dummy Win32 window that we use to capture display change events and
to create dummy WGL contexts was created with CS_OWNDC, so we really do
not need to (and should not) call ReleaseDC() on the HDC that we
obtained from it, so drop these calls.
gdk/win32/gdkdisplay-win32.c | 6 ------
1 file changed, 6 deletions(-)
---
diff --git a/gdk/win32/gdkdisplay-win32.c b/gdk/win32/gdkdisplay-win32.c
index ab6544a79b..24f60ba3e4 100644
--- a/gdk/win32/gdkdisplay-win32.c
+++ b/gdk/win32/gdkdisplay-win32.c
@@ -664,12 +664,6 @@ gdk_win32_display_dispose (GObject *object)
display_win32->dummy_context_wgl.hglrc = NULL;
}
- if (display_win32->dummy_context_wgl.hdc != NULL)
- {
- ReleaseDC (display_win32->hwnd, display_win32->dummy_context_wgl.hdc);
- display_win32->dummy_context_wgl.hdc = NULL;
- }
-
DestroyWindow (display_win32->hwnd);
display_win32->hwnd = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]