From 94039b658b6ca312482582025599ddce7210ff40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Le=20Bihan?= Date: Mon, 6 Apr 2020 02:03:44 +0200 Subject: [PATCH] colors are now init with random (note : same seed ise used everytime) --- sources/PPU/PPU.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sources/PPU/PPU.cpp b/sources/PPU/PPU.cpp index c6c337c..f9e8610 100644 --- a/sources/PPU/PPU.cpp +++ b/sources/PPU/PPU.cpp @@ -17,10 +17,9 @@ namespace ComSquare::PPU oamram(new Ram::Ram(544, ComSquare::OAMRam, "OAMRAM")), cgram(new Ram::Ram(512, ComSquare::CGRam, "CGRAM")) { - uint8_t data = 1; this->_registers._isLowByte = true; - for (int i = 0; i < 512; i++, data += 11) { - this->cgram->write_internal(i, data); + for (int i = 0; i < 512; i++) { + this->cgram->write_internal(i, random() % 255); } }