summaryrefslogtreecommitdiff
path: root/gdk/win32/gdkpixmap-win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdk/win32/gdkpixmap-win32.c')
-rw-r--r--gdk/win32/gdkpixmap-win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/win32/gdkpixmap-win32.c b/gdk/win32/gdkpixmap-win32.c
index c67e0f3595..df90c12c4c 100644
--- a/gdk/win32/gdkpixmap-win32.c
+++ b/gdk/win32/gdkpixmap-win32.c
@@ -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));