gdk/win32: correct gdk_win32_surface_get_handle return type
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 23 Aug 2022 12:17:15 +0000 (16:17 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 23 Aug 2022 12:17:19 +0000 (16:17 +0400)
The associated surface window handle is a HWND, not a HGDIOBJ.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
gdk/win32/gdksurface-win32.c
gdk/win32/gdkwin32misc.h
tests/dummy-headers/windows.h

index e461b0e91637eec044cb5e0e08fbe89a0d6c10d8..bd4183eb0bc04e7706d4718557e7a8c8a4365d8d 100644 (file)
@@ -4621,7 +4621,7 @@ gdk_win32_surface_class_init (GdkWin32SurfaceClass *klass)
   impl_class->compute_size = _gdk_win32_surface_compute_size;
 }
 
-HGDIOBJ
+HWND
 gdk_win32_surface_get_handle (GdkSurface *window)
 {
   if (!GDK_IS_WIN32_SURFACE (window))
index bfa356a453a5dd8bfb2fac62ec790c732e51ebd3..1bab4ec404021acae6cc7d5a923e11722ae74d5a 100644 (file)
@@ -78,7 +78,7 @@ GDK_AVAILABLE_IN_ALL
 gpointer      gdk_win32_handle_table_lookup (HWND handle);
 /* Translate from window to Windows handle */
 GDK_AVAILABLE_IN_ALL
-HGDIOBJ       gdk_win32_surface_get_handle (GdkSurface *window);
+HWND          gdk_win32_surface_get_handle (GdkSurface *window);
 
 GDK_AVAILABLE_IN_ALL
 GdkSurface *   gdk_win32_surface_lookup_for_display (GdkDisplay *display,
index fefe9e8fa24ff60d06c7db70282899a10b843338..1b1d700fc352ff2b67766aeb59018bd0df087d71 100644 (file)
@@ -1,6 +1,5 @@
 /* Dummy header for the Win32 backend. */
 
 typedef void *HDC;
-typedef void *HGDIOBJ;
 typedef void *HICON;
 typedef void *HWND;