GBHawk: allocate memory correctly >___>

This commit is contained in:
alyosha-tas 2017-11-27 15:13:42 -05:00
parent 0cfd2c59d0
commit 17aa0a00a7
1 changed files with 2 additions and 2 deletions

View File

@ -128,8 +128,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk
iptr0 = Marshal.AllocHGlobal(CHR_RAM.Length + BG_map_1.Length + BG_map_2.Length + 1);
iptr1 = Marshal.AllocHGlobal(OAM.Length + 1);
iptr2 = Marshal.AllocHGlobal(color_palette.Length * 2 + 1);
iptr3 = Marshal.AllocHGlobal(color_palette.Length + 1);
iptr2 = Marshal.AllocHGlobal(color_palette.Length * 2 * 8 + 1);
iptr3 = Marshal.AllocHGlobal(color_palette.Length * 8 + 1);
_scanlineCallback = null;
}