Skip to content

Commit

Permalink
vnc-enc-tight: fix Arguments in wrong order
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Gonglei <[email protected]>
Signed-off-by: Gerd Hoffmann <[email protected]>
  • Loading branch information
gongleiarei authored and kraxel committed Dec 10, 2014
1 parent 45e1611 commit 525965b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/vnc-enc-tight.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 525965b

Please sign in to comment.