From 8f70cb8667ea7a1a461d655a42e01584503d6d28 Mon Sep 17 00:00:00 2001 From: Misa Date: Thu, 5 Aug 2021 19:44:24 -0700 Subject: [PATCH] Fix regression with chunky pixels being the wrong color Since colors going into FillRect() need to be in BGR format, we need to use getBGR instead. (Well, actually, it gets passed in RGB, but then at some point the order gets switched around, and, really, this game's masks are all over the place, I'm going to fix that in 2.4.) --- desktop_version/src/Graphics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desktop_version/src/Graphics.cpp b/desktop_version/src/Graphics.cpp index b5bbf56d..841a5c1c 100644 --- a/desktop_version/src/Graphics.cpp +++ b/desktop_version/src/Graphics.cpp @@ -2988,9 +2988,9 @@ Uint32 Graphics::bigchunkygetcol(int t) switch (t) { case 1: - return getRGB((fRandom() * 64), 10, 10); + return getBGR((fRandom() * 64), 10, 10); case 2: - return getRGB(int(160- help.glow/2 - (fRandom()*20)), 200- help.glow/2, 220 - help.glow); + return getBGR(int(160- help.glow/2 - (fRandom()*20)), 200- help.glow/2, 220 - help.glow); } return 0x00000000; }