5
0
mirror of synced 2024-11-23 22:41:06 +01:00
This commit is contained in:
windyfairy 2019-11-15 14:32:44 +09:00
parent 831fd9fb3b
commit 2217d77c83

View File

@ -156,9 +156,9 @@ namespace gitadora_textool
bitmapData = bitmapDataOnly;
pixelFormat = PixelFormat.Format4bppIndexed;
for (int i = 0; i < paletteData.Length / 4; i++)
pixelFormat = PixelFormat.Format4bppIndexed;
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]));
}