Gameboy GPU Viewer: Always set upper byte of palette

This commit is contained in:
alyosha-tas 2017-11-26 15:46:21 -05:00
parent 34a17570d6
commit 0cfd2c59d0
1 changed files with 3 additions and 3 deletions

View File

@ -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;