5
0
mirror of synced 2024-11-27 16:10:50 +01:00
This commit is contained in:
windyfairy 2019-11-15 14:32:44 +09:00
parent 831fd9fb3b
commit 2217d77c83

View File

@ -158,7 +158,7 @@ namespace gitadora_textool
pixelFormat = PixelFormat.Format4bppIndexed;
for (int i = 0; i < paletteData.Length / 4; i++)
for (int i = 0; i < paletteData.Length; i += 4)
{
paletteEntries.Add(Color.FromArgb(paletteData[i + 3], paletteData[i], paletteData[i + 1], paletteData[i + 2]));
}
@ -176,7 +176,7 @@ namespace gitadora_textool
pixelFormat = PixelFormat.Format8bppIndexed;
for (int i = 0; i < paletteData.Length / 4; i++)
for (int i = 0; i < paletteData.Length; i+=4)
{
paletteEntries.Add(Color.FromArgb(paletteData[i + 3], paletteData[i], paletteData[i + 1], paletteData[i + 2]));
}