mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
Phil Bordelon points out that my invocation of gdk_pixbuf_save()
isn't quite right. [originally from svn r7050]
This commit is contained in:
3
gtk.c
3
gtk.c
@ -2097,12 +2097,13 @@ int main(int argc, char **argv)
|
||||
|
||||
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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user