mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-05-29 17:02:21 +00:00
style \n
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user