From 9542629b2e3badc2bb0e84294064800d0760fbdd Mon Sep 17 00:00:00 2001 From: "Carl.Kenner" Date: Mon, 27 Apr 2009 17:04:50 +0000 Subject: [PATCH] Fix for Zelda DX bug (issue 95). --- source/vba/gb/gbMono.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/vba/gb/gbMono.cpp b/source/vba/gb/gbMono.cpp index ee989aa..958aa4a 100644 --- a/source/vba/gb/gbMono.cpp +++ b/source/vba/gb/gbMono.cpp @@ -71,7 +71,7 @@ void gbSetBGPalette(u8 value, bool ColoursChanged=false) { gbBgp[1] = (value & 0x0c)>>2; gbBgp[2] = (value & 0x30)>>4; gbBgp[3] = (value & 0xc0)>>6; - if ((value==oldBgp && !ColoursChanged) || gbSgbMode || !ColorizeGameboy) return; + if ((value==oldBgp && !ColoursChanged) || gbCgbMode || gbSgbMode || !ColorizeGameboy) return; // check for duplicates bool dup = false; for (int i=0; i<=2; i++) @@ -138,7 +138,7 @@ void gbSetObj0Palette(u8 value, bool ColoursChanged = false) { gbObp0[1] = (value & 0x0c)>>2; gbObp0[2] = (value & 0x30)>>4; gbObp0[3] = (value & 0xc0)>>6; - if ((value==oldObp0 && !ColoursChanged) || gbSgbMode || !ColorizeGameboy) return; + if ((value==oldObp0 && !ColoursChanged) || gbCgbMode || gbSgbMode || !ColorizeGameboy) return; // check for duplicates bool dup = false; for (int i=1; i<=2; i++) @@ -198,7 +198,7 @@ void gbSetObj1Palette(u8 value, bool ColoursChanged = false) { gbObp1[1] = (value & 0x0c)>>2; gbObp1[2] = (value & 0x30)>>4; gbObp1[3] = (value & 0xc0)>>6; - if ((value==oldObp1 && !ColoursChanged) || gbSgbMode || !ColorizeGameboy) return; + if ((value==oldObp1 && !ColoursChanged) || gbCgbMode || gbSgbMode || !ColorizeGameboy) return; // check for duplicates bool dup = false; for (int i=1; i<=2; i++)