From f5d37cf73b71959aa65d52ba78e1b4b1350e8931 Mon Sep 17 00:00:00 2001 From: goyuken Date: Thu, 13 Sep 2012 23:09:03 +0000 Subject: [PATCH] the world would end if microsoft ran it --- .../Consoles/Nintendo/Gameboy/ColorChooserForm.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BizHawk.Emulation/Consoles/Nintendo/Gameboy/ColorChooserForm.cs b/BizHawk.Emulation/Consoles/Nintendo/Gameboy/ColorChooserForm.cs index ed7a89eab3..54c905255d 100644 --- a/BizHawk.Emulation/Consoles/Nintendo/Gameboy/ColorChooserForm.cs +++ b/BizHawk.Emulation/Consoles/Nintendo/Gameboy/ColorChooserForm.cs @@ -108,9 +108,10 @@ namespace BizHawk.Emulation.Consoles.Nintendo.Gameboy dlg.Color = colors[i]; // custom colors are ints, not Color structs? + // and they don't work right unless the alpha bits are set to 0 int[] customs = new int[12]; for (int j = 0; j < customs.Length; j++) - customs[j] = colors[j].ToArgb(); + customs[j] = colors[j].ToArgb() & 0xffffff; dlg.CustomColors = customs; dlg.FullOpen = true;