From eb47b3ed9abf2ff980a8636789fafdf5faef2f82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Le=20Bihan?= Date: Wed, 23 Jun 2021 22:25:24 +0200 Subject: [PATCH] resetting tic tasc toe mode --- sources/PPU/PPU.cpp | 8 ++++---- sources/PPU/PPU.hpp | 3 --- sources/PPU/PPUUtils.hpp | 3 +++ 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sources/PPU/PPU.cpp b/sources/PPU/PPU.cpp index 194b50b..27dc900 100644 --- a/sources/PPU/PPU.cpp +++ b/sources/PPU/PPU.cpp @@ -74,12 +74,12 @@ namespace ComSquare::PPU 00,0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0xe0,0x00,0xf0,0x00,0xf8,0x00,0xfc,0x00, 00,0x00,0x00,0x00,0x01,0x00,0x03,0x00,0x07,0x00,0x0f,00,0x1f,00,0x3f,00, -1 }; - /*int *cgram_test = get_dump_cgram(); + /* int *cgram_test = Utils::get_dump_cgram(); for (int i = 0; cgram_test[i] != -1; i++) { this->cgram->write(i, cgram_test[i]); - }*/ + } */ - //int *vram_test = get_dump_vram(); + //int *vram_test = Utils::get_dump_vram(); for (int i = 0; vram_test[i] != -1; i++) { this->vram->write(i, vram_test[i]); } @@ -721,7 +721,7 @@ namespace ComSquare::PPU uint32_t color = Utils::getRealColor(colorPalette); for (auto &row : this->_subScreen) - row.fill(color); + row.fill(color); // the buffer is overwrite if necessary by a new bg so the background priority is from back to front // the starting palette index isn't implemented switch (this->_registers._bgmode.bgMode) { diff --git a/sources/PPU/PPU.hpp b/sources/PPU/PPU.hpp index f10b1ec..8b98746 100644 --- a/sources/PPU/PPU.hpp +++ b/sources/PPU/PPU.hpp @@ -658,8 +658,5 @@ namespace ComSquare::PPU } } }; - - int *get_dump_vram(); - int *get_dump_cgram(); } #endif //COMSQUARE_PPU_HPP diff --git a/sources/PPU/PPUUtils.hpp b/sources/PPU/PPUUtils.hpp index 2314ea5..de004f1 100644 --- a/sources/PPU/PPUUtils.hpp +++ b/sources/PPU/PPUUtils.hpp @@ -72,5 +72,8 @@ namespace ComSquare::PPU::Utils std::reverse(array.begin() + offset.x, array.begin() + offset.x + size.x); } + int *get_dump_vram(); + int *get_dump_cgram(); + } #endif //COMSQUARE_PPU_UTILS_HPP \ No newline at end of file