BitmapBuff - fix exception from 32bit ASSumptions

This commit is contained in:
adelikat 2017-05-28 18:21:38 -05:00
parent f1565cd0b1
commit 7d84946daa
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@ namespace BizHawk.Bizware.BizwareGL
int height = bmp.Height;
InitSize(width, height);
BitmapData bmpdata = bmp.LockBits(new sd.Rectangle(0, 0, width, height), ImageLockMode.ReadOnly, PixelFormat.Format32bppArgb);
int* ptr = (int*)bmpdata.Scan0.ToInt32();
int* ptr = (int*)bmpdata.Scan0;
int stride = bmpdata.Stride / 4;
LoadFrom(width, stride, height, (byte*)ptr, options);
bmp.UnlockBits(bmpdata);