From: Gonglei <arei.gonglei@huawei.com>
To: "Gonglei (Arei)" <arei.gonglei@huawei.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] vnc-enc-tight: fix Arguments in wrong order
Date: Mon, 8 Dec 2014 19:43:33 +0800 [thread overview]
Message-ID: <54858EE5.7030500@huawei.com> (raw)
In-Reply-To: <1416474426-12176-1-git-send-email-arei.gonglei@huawei.com>
On 2014/11/20 17:07, Gonglei (Arei) wrote:
> From: Gonglei <arei.gonglei@huawei.com>
>
> 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>
> ---
> ui/vnc-enc-tight.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/ui/vnc-enc-tight.c b/ui/vnc-enc-tight.c
> index 3d1b5cd..9a9ddf2 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) {
Ping...
Regards,
-Gonglei
next prev parent reply other threads:[~2014-12-08 11:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-20 9:07 [Qemu-devel] [PATCH] vnc-enc-tight: fix Arguments in wrong order arei.gonglei
2014-11-25 16:56 ` Stefan Hajnoczi
2014-12-08 11:43 ` Gonglei [this message]
2014-12-08 11:50 ` Gerd Hoffmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54858EE5.7030500@huawei.com \
--to=arei.gonglei@huawei.com \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.