[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL for-2.9 3/5] cirrus: fix PUTPIXEL macro
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PULL for-2.9 3/5] cirrus: fix PUTPIXEL macro |
Date: |
Mon, 27 Mar 2017 15:28:35 +0200 |
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 <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>
Reviewed-by: Dr. David Alan Gilbert <address@hidden>
Message-id: address@hidden
---
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
- [Qemu-devel] [PULL for-2.9 0/5] fixes for 2.9: vga, egl, cirrus, virtio-input., Gerd Hoffmann, 2017/03/27
- [Qemu-devel] [PULL for-2.9 4/5] ui/egl-helpers: fix egl 1.5 display init, Gerd Hoffmann, 2017/03/27
- [Qemu-devel] [PULL for-2.9 3/5] cirrus: fix PUTPIXEL macro,
Gerd Hoffmann <=
- [Qemu-devel] [PULL for-2.9 5/5] vnc: fix reverse mode, Gerd Hoffmann, 2017/03/27
- [Qemu-devel] [PULL for-2.9 2/5] virtio-input: fix eventq batching, Gerd Hoffmann, 2017/03/27
- [Qemu-devel] [PULL for-2.9 1/5] virtio-input: free event queue when finalizing, Gerd Hoffmann, 2017/03/27
- Re: [Qemu-devel] [PULL for-2.9 0/5] fixes for 2.9: vga, egl, cirrus, virtio-input., Peter Maydell, 2017/03/27