diff -aur xzgv-0.9/src/main.c xzgv-0.9.new/src/main.c --- xzgv-0.9/src/main.c 2007-09-08 20:36:21.000000000 -0400 +++ xzgv-0.9.new/src/main.c 2009-08-01 15:35:22.000000000 -0400 @@ -2547,7 +2547,7 @@ return(NULL); if((pixmap=gdk_pixmap_new(mainwin->window,w,h, - gdk_visual_get_best_depth()))==NULL) + image->depth))==NULL) { gdk_image_destroy(image); return(NULL); @@ -2567,7 +2567,7 @@ if(small_h==0) small_h=1; if((small_pixmap=gdk_pixmap_new(mainwin->window,small_w,small_h, - gdk_visual_get_best_depth()))==NULL) + image->depth))==NULL) { gdk_pixmap_unref(pixmap); gdk_image_destroy(image);