summaryrefslogtreecommitdiff
path: root/src/slideshow.c
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2012-09-12 19:45:58 +0200
committerDaniel Friesel <derf@finalrewind.org>2012-09-12 19:45:58 +0200
commit31c67831736e4bde3ef0d4dedb7c11dfc6649fdf (patch)
treecfbbb0904d41d8ac80aac3ab55f46a53f42be20c /src/slideshow.c
parentd3709b893f6ba8657759ad981af79ac3740e1c71 (diff)
Proper workaround for broken gib_imlib_save_image_with_error_return
Diffstat (limited to 'src/slideshow.c')
-rw-r--r--src/slideshow.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/slideshow.c b/src/slideshow.c
index cec146c..2e9c417 100644
--- a/src/slideshow.c
+++ b/src/slideshow.c
@@ -594,13 +594,7 @@ void slideshow_save_image(winwidget win)
if (opt.verbose)
printf("saving image to filename '%s'\n", tmpname);
- /* XXX gib_imlib_save_image_with_error_return breaks with *.XXX and
- * similar because it tries to set the image format, which only works
- * with .xxx .
- * So we leave that part out.
- */
- imlib_context_set_image(win->im);
- imlib_save_image_with_error_return(tmpname, &err);
+ ungib_imlib_save_image_with_error_return(win->im, tmpname, &err);
if (err)
im_weprintf(win, "Can't save image %s:", tmpname);