Skip to content

Commit 72cee82

Browse files
committed
Readd deleted code...
1 parent 7be55a1 commit 72cee82

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/ImageSharp/Formats/Tga/TgaDecoderCore.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,13 @@ private void ReadPaletted<TPixel>(BufferedReadStream stream, int width, int heig
262262
ReadPalettedBgr24Pixel(stream, palette, colorMapPixelSizeInBytes, x, color, pixelRow);
263263
}
264264
}
265+
else
266+
{
267+
for (int x = 0; x < width; x++)
268+
{
269+
ReadPalettedBgr24Pixel(stream, palette, colorMapPixelSizeInBytes, x, color, pixelRow);
270+
}
271+
}
265272

266273
break;
267274

@@ -273,6 +280,13 @@ private void ReadPaletted<TPixel>(BufferedReadStream stream, int width, int heig
273280
ReadPalettedBgra32Pixel(stream, palette, colorMapPixelSizeInBytes, x, color, pixelRow);
274281
}
275282
}
283+
else
284+
{
285+
for (int x = 0; x < width; x++)
286+
{
287+
ReadPalettedBgra32Pixel(stream, palette, colorMapPixelSizeInBytes, x, color, pixelRow);
288+
}
289+
}
276290

277291
break;
278292
}

0 commit comments

Comments
 (0)