(GR2): fixed 15bpp images.

This commit is contained in:
morkt 2017-12-26 19:53:08 +04:00
parent 927698d938
commit e9d6b3d05c

View File

@ -61,7 +61,7 @@ namespace GameRes.Formats.AdvSys
{ {
case 32: format = PixelFormats.Bgra32; break; case 32: format = PixelFormats.Bgra32; break;
case 24: format = PixelFormats.Bgr24; break; case 24: format = PixelFormats.Bgr24; break;
case 16: format = PixelFormats.Bgr565; break; case 16: format = PixelFormats.Bgr555; break;
default: throw new NotSupportedException ("Not supported image bitdepth"); default: throw new NotSupportedException ("Not supported image bitdepth");
} }
return ImageData.Create (info, format, null, pixels, stride); return ImageData.Create (info, format, null, pixels, stride);