Skip to contentSkip to conversation

cirrus: fix PUTPIXEL macro

PATCH In review Gerd Hoffmann 2 participants 2 messages Mar 22, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cirrus: fix PUTPIXEL macro

Should be "c" not "col". The macro is used with "col" as third parameter everywhere, so this tyops doesn't break something.

Fixes 026aeffcb4752054830ba203020ed6eb05bcaba8
---
 hw/display/cirrus_vga_rop2.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
hw/display/cirrus_vga_rop2.h +2 -2
index b86bcd6..b208b73 100644
@@ -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)
Signature · 1 line
1.8.3.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · * Gerd Hoffmann ([email protected]) 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
Quoted 23 lines
---
 hw/display/cirrus_vga_rop2.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
hw/display/cirrus_vga_rop2.h +2 -2
index b86bcd6..b208b73 100644
@@ -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)
Signature · 1 line
1.8.3.1

--
Dr. David Alan Gilbert / [email protected] / Manchester, UK