BitmapBuff - fix exception from 32bit ASSumptions
This commit is contained in:
parent
f1565cd0b1
commit
7d84946daa
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue