From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] cirrus: fix PUTPIXEL macro
Date: Wed, 22 Mar 2017 11:41:55 +0000 [thread overview]
Message-ID: <20170322114155.GD2406@work-vm> (raw)
In-Reply-To: <1490168303-24588-1-git-send-email-kraxel@redhat.com>
* Gerd Hoffmann (kraxel@redhat.com) wrote:
> Should be "c" not "col". The macro is used with "col" as third parameter
> everywhere, so this tyops doesn't break something.
>
> Fixes: 026aeffcb4752054830ba203020ed6eb05bcaba8
> Reported-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
> ---
> hw/display/cirrus_vga_rop2.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/hw/display/cirrus_vga_rop2.h b/hw/display/cirrus_vga_rop2.h
> index b86bcd6..b208b73 100644
> --- a/hw/display/cirrus_vga_rop2.h
> +++ b/hw/display/cirrus_vga_rop2.h
> @@ -29,8 +29,8 @@
> #elif DEPTH == 24
> #define PUTPIXEL(s, a, c) do { \
> ROP_OP(s, a, c); \
> - ROP_OP(s, a + 1, (col >> 8)); \
> - ROP_OP(s, a + 2, (col >> 16)); \
> + ROP_OP(s, a + 1, (c >> 8)); \
> + ROP_OP(s, a + 2, (c >> 16)); \
> } while (0)
> #elif DEPTH == 32
> #define PUTPIXEL(s, a, c) ROP_OP_32(s, a, c)
> --
> 1.8.3.1
>
>
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
prev parent reply other threads:[~2017-03-22 11:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-22 7:38 [Qemu-devel] [PATCH] cirrus: fix PUTPIXEL macro Gerd Hoffmann
2017-03-22 11:41 ` Dr. David Alan Gilbert [this message]
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=20170322114155.GD2406@work-vm \
--to=dgilbert@redhat.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.