fix two minor ColorChooserForm bugs

add "bsnes v087.pal"
This commit is contained in:
goyuken 2012-09-16 14:36:42 +00:00
parent ac6cf7a18d
commit 2810a048f0
2 changed files with 16 additions and 1 deletions

View File

@ -130,9 +130,10 @@ namespace BizHawk.MultiClient.GBtools
// custom colors are ints, not Color structs?
// and they don't work right unless the alpha bits are set to 0
// and the rgb order is switched
int[] customs = new int[12];
for (int j = 0; j < customs.Length; j++)
customs[j] = colors[j].ToArgb() & 0xffffff;
customs[j] = colors[j].R | colors[j].G << 8 | colors[j].B << 16;
dlg.CustomColors = customs;
dlg.FullOpen = true;
@ -300,6 +301,7 @@ namespace BizHawk.MultiClient.GBtools
currentfile = filename;
filemodified = false;
label4.Text = "Current palette file:";
textBox1.Text = Path.GetFileName(filename);
}
}
catch

View File

@ -0,0 +1,13 @@
[General]
Background0=10140421
Background1=9087749
Background2=1922333
Background3=337157
Sprite%2010=10140421
Sprite%2011=9087749
Sprite%2012=1922333
Sprite%2013=337157
Sprite%2020=10140421
Sprite%2021=9087749
Sprite%2022=1922333
Sprite%2023=337157