From 1bab34eb2ae67a71ec21362109384dba19f7a796 Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Mon, 22 Apr 2013 21:24:50 -0700 Subject: Shadow and higlight operators were switched --- vdp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vdp.c') diff --git a/vdp.c b/vdp.c index 4387f48..62e974a 100644 --- a/vdp.c +++ b/vdp.c @@ -526,10 +526,10 @@ void render_map_output(uint32_t line, int32_t col, vdp_context * context) 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; -- cgit v1.2.3