summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/tcx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/tcx.c b/hw/tcx.c
index 7598e8c2f1..beb30ac825 100644
--- a/hw/tcx.c
+++ b/hw/tcx.c
@@ -161,7 +161,7 @@ static inline void tcx24_draw_line32(TCXState *s1, uint8_t *d,
p8++;
b = *p8++;
g = *p8++;
- r = *p8++;
+ r = *p8;
if (bgr)
dval = rgb_to_pixel32bgr(r, g, b);
else