changeset 2259:425b44fd7bf1

Fix TMS9918A sprite horizontal position
author Michael Pavone <pavone@retrodev.com>
date Sun, 18 Dec 2022 22:42:27 -0800
parents a28e1042f4de
children 3f155bc13183
files vdp.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;