apps,litenes,ppu: directly set color16 to background for all pass

* Since last commit, the non-mirror pass and the mirror pass do not
  overlap. Combining them will give the complete screen.
This commit is contained in:
Zihao Yu 2019-05-01 10:17:57 +08:00
parent c4b65cfa51
commit c4abe72189
1 changed files with 1 additions and 4 deletions

View File

@ -295,10 +295,7 @@ static inline void ppu_draw_background_scanline(bool mirror) {
// most of the tiles of bg are transparent, which are unnecessary to process
if (XHLidx != 0) {
uint32_t color16 = XHL16[XHLidx];
uint16_t *ptr = &ppu_screen_background[ppu.scanline][tile_x];
if (!mirror) { *ptr = color16; }
else { *ptr = color16 | (XHLmask16[XHLidx] & (*ptr)) ; }
ppu_screen_background[ppu.scanline][tile_x] = XHL16[XHLidx];
if (do_update) {
uint32_t *color_cache_line = color_cache[p_palette_attribute[tile_x >> 2]];