diff --git a/hw/tcx.c b/hw/tcx.c index 7598e8c2f..beb30ac82 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