shithub: puzzles

Download patch

ref: 7848918bace2aed7f850f95c20afa5d1345ad1f7
parent: 21127b78eba2bf753b7b9006cf9bb79031d8f56e
author: Simon Tatham <[email protected]>
date: Tue Jan 2 14:45:19 EST 2007

Phil Bordelon points out that my invocation of gdk_pixbuf_save()
isn't quite right.

[originally from svn r7050]

--- a/gtk.c
+++ b/gtk.c
@@ -2097,12 +2097,13 @@
 
 	if (screenshot_file) {
 	    GdkPixbuf *pb;
+            GError* gerror;
 
 	    midend_redraw(fe->me);
 
 	    pb = gdk_pixbuf_get_from_drawable(NULL, fe->pixmap,
 					      NULL, 0, 0, 0, 0, -1, -1);
-	    gdk_pixbuf_save(pb, screenshot_file, "png", NULL);
+	    gdk_pixbuf_save(pb, screenshot_file, "png", &gerror, NULL);
 
 	    exit(0);
 	}