This commit is contained in:
Clément Le Bihan
2020-05-26 01:54:43 +02:00
parent 3675bc7081
commit feabd56991
+1 -1
View File
@@ -78,8 +78,8 @@ namespace ComSquare::PPU
std::vector<uint16_t> Background::getPalette(int nbPalette)
{
std::vector<uint16_t> palette(0xF);
uint16_t addr = nbPalette * 0x10;
for (int i = 0; i < 0xF; i++) {
palette[i] = this->_cgram->read_internal(addr);
palette[i] += this->_cgram->read_internal(addr + 1) << 8U;