repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: e19476c80cee8677b7a2c70a4cbfc04493fbbb3e: path_to: revision_to:
commit e19476c80cee8677b7a2c70a4cbfc04493fbbb3e Author: Emanuele GiaquintaDate: Tue Jun 5 15:12:43 2012 +0000 Fix computation of image format in rxvt_term::new_img. diff --git a/src/rxvtperl.xs b/src/rxvtperl.xs
--- a/src/rxvtperl.xs
+++ b/src/rxvtperl.xs
@@ -1989,8 +1989,8 @@ rxvt_img *
rxvt_term::new_img (SV *format, int width, int height)
CODE:
XRenderPictFormat *f = SvOK (format)
- ? XRenderFindVisualFormat (THIS->dpy, THIS->visual)
- : XRenderFindStandardFormat (THIS->dpy, SvIV (format));
+ ? XRenderFindStandardFormat (THIS->dpy, SvIV (format))
+ : XRenderFindVisualFormat (THIS->dpy, THIS->visual);
RETVAL = new rxvt_img (THIS, f, width, height);
OUTPUT:
RETVAL
-----END OF PAGE-----