chiark / gitweb /
Minor changes for win32
authorespen <espen>
Sat, 2 Jun 2007 19:17:47 +0000 (19:17 +0000)
committerespen <espen>
Sat, 2 Jun 2007 19:17:47 +0000 (19:17 +0000)
gdk/alien/glue.c

index 94109b9c988e1d2ba3b19e0b628ffa7a6e53f54e..38d343c0be662bc850ffc7e8cfc3ca2b446093fe 100644 (file)
  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
-/* $Id: glue.c,v 1.6 2007-06-01 09:23:41 espen Exp $ */
+/* $Id: glue.c,v 1.7 2007-06-02 19:17:47 espen Exp $ */
 
 
 #include <gdk/gdk.h>
 
 #ifdef GDK_WINDOWING_X11
 #include <gdk/gdkx.h>
+#elif defined (G_OS_WIN32)
+#include <gdk/gdkwin32.h>
 #endif
 
 gint clg_gdk_connection_number (GdkDisplay *display)
@@ -53,9 +55,9 @@ GdkWindow *clg_gdk_cairo_surface_get_window (cairo_surface_t *surface)
   else
     return NULL;
 #elif defined (G_OS_WIN32)
-  HDC hdc = cairo_win32_surface_get_dc (surface);
+  HDC hdc = (HDC)cairo_win32_surface_get_dc (surface);
   if (hdc)
-    return gdk_window_lookup (hdc);
+    return gdk_window_lookup ((GdkNativeWindow)hdc);
   else
     return NULL;
 #else