diff vdp.c @ 232:54873acb982e

Shadow and higlight operators were switched
author Mike Pavone <pavone@retrodev.com>
date Mon, 22 Apr 2013 21:24:50 -0700
parents d3266cee02c9
children 9d10669f2579
line wrap: on
line diff
--- a/vdp.c	Mon Apr 22 20:13:07 2013 -0700
+++ b/vdp.c	Mon Apr 22 21:24:50 2013 -0700
@@ -526,10 +526,10 @@
 				src = 0;
 				uint8_t sprite_color = *sprite_buf & 0x3F;
 				if (sprite_color == 0x3E || sprite_color == 0x3F) {
-					if (sprite_color == 0x3E) {
-						src |= FBUF_SHADOW;
+					if (sprite_color == 0x3F) {
+						src = FBUF_SHADOW;
 					} else {
-						src |= FBUF_HILIGHT;
+						src = FBUF_HILIGHT;
 					}
 					if (*plane_a & BUF_BIT_PRIORITY && *plane_a & 0xF) {
 						pixel = *plane_a;