repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: e19476c80cee8677b7a2c70a4cbfc04493fbbb3e:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit e19476c80cee8677b7a2c70a4cbfc04493fbbb3e
Author: Emanuele Giaquinta 
Date:   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
index e695582f504452702bd83c9ec1818c5d58209a76..
index ..015a6fdc362256954745d9f004e0f1ef804a779d 100644
--- 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-----