# HG changeset patch # User Michael Pavone # Date 1671432147 28800 # Node ID 425b44fd7bf16d74dabb00426d190e16d161f534 # Parent a28e1042f4de296d7ea162bc58a27a19dd4f08f1 Fix TMS9918A sprite horizontal position diff -r a28e1042f4de -r 425b44fd7bf1 vdp.c --- a/vdp.c Sun Dec 18 15:11:30 2022 -0800 +++ b/vdp.c Sun Dec 18 22:42:27 2022 -0800 @@ -3760,7 +3760,9 @@ { int16_t x = context->hslot << 1; if (x > 294) { - x -= 512; + x -= 512 + 8; + } else { + x -= 8; } x += offset; uint8_t output = 0;