src/memory/memory.cc
/*
 * Updates the mask selection of the palette, then refreshes the pixel data.
 *
 * Assumes the palette has been initialized.
 */
Updates the mask selection of the palette, then refreshes the pixel data.
Assumes the palette has been initialized.
Updates the mask selection of the palette then refreshes the pixel data . Assumes the palette has been initialized .
void Memory::PaletteUpdate(DataWord mask) {
  palette_->UpdateMask(mask);
  for (size_t i = 0; i < ACTIVE_PALETTE_SIZE; i++) {
    pixels_->emu[i] = palette_->Decode(pixels_->nes[i]);
  }
  return;
}
void Memory :: PaletteUpdate ( DataWord mask ) { palette_ -> UpdateMask ( mask ) ; for ( size_t i = 0 ; i < ACTIVE_PALETTE_SIZE ; i ++ ) { pixels_ -> emu [ i ] = palette_ -> Decode ( pixels_ -> nes [ i ] ) ; } return ; }
Updates the mask selection of the palette, then refreshes the pixel data.
Updates the mask selection of the palette then refreshes the pixel data .
// Updates the palette mask. // Update each entry in the pixel array.