From 0cfd2c59d0c38f60e4f6dc288dc3a016c3060ae1 Mon Sep 17 00:00:00 2001 From: alyosha-tas Date: Sun, 26 Nov 2017 15:46:21 -0500 Subject: [PATCH] Gameboy GPU Viewer: Always set upper byte of palette --- BizHawk.Client.EmuHawk/tools/GB/GBGPUView.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BizHawk.Client.EmuHawk/tools/GB/GBGPUView.cs b/BizHawk.Client.EmuHawk/tools/GB/GBGPUView.cs index ea6c8aaa0b..42a6507166 100644 --- a/BizHawk.Client.EmuHawk/tools/GB/GBGPUView.cs +++ b/BizHawk.Client.EmuHawk/tools/GB/GBGPUView.cs @@ -128,7 +128,7 @@ namespace BizHawk.Client.EmuHawk for (int x = 0; x < 8; x++) // right to left { int color = loplane & 1 | hiplane & 2; - *dest-- = pal[color]; + *dest-- = (int)(pal[color] | 0xFF000000); loplane >>= 1; hiplane >>= 1; } @@ -160,7 +160,7 @@ namespace BizHawk.Client.EmuHawk for (int x = 0; x < 8; x++) // right to left { int color = loplane & 1 | hiplane & 2; - *dest = pal[color]; + *dest = (int)(pal[color] | 0xFF000000); if (!hflip) dest--; else @@ -342,7 +342,7 @@ namespace BizHawk.Client.EmuHawk { for (int py = 0; py < 4; py++) { - *dest = *pal++; + *dest = (int)(*pal++ | 0xFF000000); dest += pitch; } dest -= pitch * 4;