From d77433b52561c13c2e537f807760f5722ca145c2 Mon Sep 17 00:00:00 2001 From: Ian Curtis Date: Sat, 1 Aug 2020 09:02:04 +0000 Subject: [PATCH] Remove some debug code --- Src/Graphics/Render2D.cpp | 1 - Src/Model3/TileGen.cpp | 4 ---- 2 files changed, 5 deletions(-) diff --git a/Src/Graphics/Render2D.cpp b/Src/Graphics/Render2D.cpp index 84edfc4..031abde 100644 --- a/Src/Graphics/Render2D.cpp +++ b/Src/Graphics/Render2D.cpp @@ -301,7 +301,6 @@ static inline void DrawTileLine(uint32_t *line, int pixelOffset, uint16_t tile, { static_assert(bits == 4 || bits == 8, "Tiles are either 4- or 8-bit"); - // For 8-bit pixels, each line of tile pattern is two words if (bits == 8) patternLine *= 2; diff --git a/Src/Model3/TileGen.cpp b/Src/Model3/TileGen.cpp index 78be6ca..8203e1d 100644 --- a/Src/Model3/TileGen.cpp +++ b/Src/Model3/TileGen.cpp @@ -281,10 +281,6 @@ void CTileGen::WriteRAM32(unsigned addr, UINT32 data) // Update palette if required if (addr >= 0x100000) { - if (data >> 16) { - int debug = 0; - } - addr -= 0x100000; unsigned color = addr/4; // color index