+
+ if (igif.transparent != -1) {
+ for (i = 0; i < 256; i++)
+ if ((pal[3 * i + 0] == 255) && (pal[3 * i + 1] == 0) && (pal[3 * i + 2] == 255)) pal[3 * i + 2] = 254;
+ pal[3 * (igif.transparent) + 0] = 255,
+ pal[3 * (igif.transparent) + 1] = 0,
+ pal[3 * (igif.transparent) + 2] = 255;
+ image->SetMaskColour(255, 0, 255);
+ }
+ else image->SetMask(FALSE);
+