mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 22:42:38 +01:00
Allows for up to 255 colors in blu-ray palette (and not 256)...
This commit is contained in:
parent
b661a566c3
commit
9564f5a05a
@ -233,7 +233,7 @@ namespace Nikse.SubtitleEdit.Logic.BluRaySup
|
|||||||
for (int x = 0; x < bitmap.Width; x++)
|
for (int x = 0; x < bitmap.Width; x++)
|
||||||
{
|
{
|
||||||
Color c = bitmap.GetPixel(x, y);
|
Color c = bitmap.GetPixel(x, y);
|
||||||
if (!pal.ContainsKey(c) && c != Color.Transparent && pal.Count < 255)
|
if (!pal.ContainsKey(c) && c != Color.Transparent && pal.Count < 254)
|
||||||
pal.Add(c, pal.Count);
|
pal.Add(c, pal.Count);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user