comparison 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
comparison
equal deleted inserted replaced
231:d9b14fb7e00c 232:54873acb982e
524 uint8_t pixel; 524 uint8_t pixel;
525 525
526 src = 0; 526 src = 0;
527 uint8_t sprite_color = *sprite_buf & 0x3F; 527 uint8_t sprite_color = *sprite_buf & 0x3F;
528 if (sprite_color == 0x3E || sprite_color == 0x3F) { 528 if (sprite_color == 0x3E || sprite_color == 0x3F) {
529 if (sprite_color == 0x3E) { 529 if (sprite_color == 0x3F) {
530 src |= FBUF_SHADOW; 530 src = FBUF_SHADOW;
531 } else { 531 } else {
532 src |= FBUF_HILIGHT; 532 src = FBUF_HILIGHT;
533 } 533 }
534 if (*plane_a & BUF_BIT_PRIORITY && *plane_a & 0xF) { 534 if (*plane_a & BUF_BIT_PRIORITY && *plane_a & 0xF) {
535 pixel = *plane_a; 535 pixel = *plane_a;
536 src |= a_src; 536 src |= a_src;
537 } else if (*plane_b & BUF_BIT_PRIORITY && *plane_b & 0xF) { 537 } else if (*plane_b & BUF_BIT_PRIORITY && *plane_b & 0xF) {