Colors were still wrong. I just used a switch statement to fix them. Not elegant, but I can't see a simple pattern.

This commit is contained in:
brandman211 2012-05-18 19:47:43 +00:00
parent 9f8144ec58
commit 5f534518aa
1 changed files with 13 additions and 2 deletions

View File

@ -734,8 +734,19 @@ namespace BizHawk.Emulation.Consoles.Gameboy
RenderOBJLine(y, linebuf, true);
for (int x = 0; x < 160; x++)
{
int gray = (3 - linebuf[x]) << 6;
gray |= (gray << 8) | (gray << 16);
int gray = 0x000000;
switch (linebuf[x])
{
case 0:
gray = 0xFFFFFF;
break;
case 1:
gray = 0xC0C0C0;
break;
case 2:
gray = 0x606060;
break;
}
buf[i++] = unchecked(gray | (int)0xFF000000);
}
}