]> Pileus Git - ~andy/gtk/blobdiff - gdk/win32/gdkpixmap-win32.c
gdk/win32/gdkgc-win32.c Remove gcc -Wall warnings.
[~andy/gtk] / gdk / win32 / gdkpixmap-win32.c
index c67e0f359538c4868d8a5e926ed54fdb04e5947f..df90c12c4c42f5f951e8c6eeda14f54e9d1364a6 100644 (file)
@@ -178,7 +178,7 @@ gdk_pixmap_new (GdkWindow *window,
   visual = gdk_drawable_get_visual (window);
 
   if (depth == -1)
-    depth = visual->depth;
+    depth = gdk_drawable_get_depth (GDK_DRAWABLE (window));
 
   GDK_NOTE (MISC, g_print ("gdk_pixmap_new: %dx%dx%d\n",
                           width, height, depth));