]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
vnc-enc-tight: fix Arguments in wrong order
authorGonglei <arei.gonglei@huawei.com>
Thu, 20 Nov 2014 09:07:06 +0000 (17:07 +0800)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 10 Dec 2014 09:08:12 +0000 (10:08 +0100)
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 <kraxel@redhat.com>
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/vnc-enc-tight.c

index 3d1b5cd06674586cd63be1e9664a7776129fcb3a..9a9ddf2e3ca1f6e6d17391d7cb646a9ad9ce38ae 100644 (file)
@@ -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) {