]> Git Repo - qemu.git/commitdiff
cirrus: fix PUTPIXEL macro
authorGerd Hoffmann <[email protected]>
Wed, 22 Mar 2017 07:38:23 +0000 (08:38 +0100)
committerGerd Hoffmann <[email protected]>
Mon, 27 Mar 2017 10:14:45 +0000 (12:14 +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 <[email protected]>
Signed-off-by: Gerd Hoffmann <[email protected]>
Reviewed-by: Dr. David Alan Gilbert <[email protected]>
Message-id: 1490168303[email protected]

hw/display/cirrus_vga_rop2.h

index b86bcd6e09a4e0551e8769b5fb9a252004d5ba45..b208b7348ada28aaed6bd9c09e863e6cb25d7223 100644 (file)
@@ -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)
This page took 0.021888 seconds and 4 git commands to generate.