From: Gonglei Date: Thu, 20 Nov 2014 09:07:06 +0000 (+0800) Subject: vnc-enc-tight: fix Arguments in wrong order X-Git-Tag: v2.3.0-rc0~144^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=525965b85dcd9e0d0359f1cdb04b3f25d754ffd9;p=thirdparty%2Fqemu.git vnc-enc-tight: fix Arguments in wrong order Arguments in wrong order (SWAPPED_ARGUMENTS) The positions of arguments in the call to tight_fill_palette do not match the ordering of the parameters: &fg is passed to bg &bg is passed to fg Cc: Gerd Hoffmann Signed-off-by: Gonglei Signed-off-by: Gerd Hoffmann --- diff --git a/ui/vnc-enc-tight.c b/ui/vnc-enc-tight.c index 3d1b5cd0667..9a9ddf2e3ca 100644 --- a/ui/vnc-enc-tight.c +++ b/ui/vnc-enc-tight.c @@ -1489,7 +1489,7 @@ static int send_sub_rect(VncState *vs, int x, int y, int w, int h) } #endif - colors = tight_fill_palette(vs, x, y, w * h, &fg, &bg, &palette); + colors = tight_fill_palette(vs, x, y, w * h, &bg, &fg, &palette); #ifdef CONFIG_VNC_JPEG if (allow_jpeg && vs->tight.quality != (uint8_t)-1) {