From 5f9d90f604d2001cbfae963c14bb0a84fc714ba5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Sat, 16 Feb 2013 13:14:27 +0100
Subject: [PATCH] Image.X: Fixed argument order.

Note that this bug had no detectable effect, since
both swapped arguments had the same value (8).
---
 src/modules/Image/encodings/x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/Image/encodings/x.c b/src/modules/Image/encodings/x.c
index afca88450e..5f2971b975 100644
--- a/src/modules/Image/encodings/x.c
+++ b/src/modules/Image/encodings/x.c
@@ -768,7 +768,7 @@ void image_x_encode_pseudocolor(INT32 args)
 	 translate=sp[5-args].u.string->str;
    } 
    if ( vbpp==8 && bpp==8 && !((bpp*img->xsize)%alignbits) )
-      image_x_encode_pseudocolor_1byte_exact(args,img,nct,vbpp,bpp,alignbits,
+      image_x_encode_pseudocolor_1byte_exact(args,img,nct,bpp,vbpp,alignbits,
 					     (unsigned char*)translate);
    else if (vbpp<=8) 
       image_x_encode_pseudocolor_1byte(args,img,nct,bpp,vbpp,alignbits,
-- 
GitLab