mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 03:44:13 +08:00
(GR2): fixed 15bpp images.
This commit is contained in:
parent
927698d938
commit
e9d6b3d05c
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user