From 43b43a639788758e8f7f14579d93bf72d9f8022e Mon Sep 17 00:00:00 2001 From: Sour Date: Tue, 9 Jun 2020 22:34:32 -0400 Subject: [PATCH] GB: PPU - Fix default OBJ palettes on power on The naughtyemu.gb test seems to except this, otherwise the text (sprites) is white, on a white background --- Core/GbPpu.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Core/GbPpu.cpp b/Core/GbPpu.cpp index faabc6e..fcafa2d 100644 --- a/Core/GbPpu.cpp +++ b/Core/GbPpu.cpp @@ -62,6 +62,9 @@ void GbPpu::Init(Console* console, Gameboy* gameboy, GbMemoryManager* memoryMana Write(0xFF49, 0xFF); Write(0xFF4A, 0); Write(0xFF4B, 0); + } else { + Write(0xFF48, 0xFF); + Write(0xFF49, 0xFF); } }