diff --git a/src/BizHawk.Client.EmuHawk/tools/GB/GBGPUView.cs b/src/BizHawk.Client.EmuHawk/tools/GB/GBGPUView.cs index ec76160c67..6439095ee1 100644 --- a/src/BizHawk.Client.EmuHawk/tools/GB/GBGPUView.cs +++ b/src/BizHawk.Client.EmuHawk/tools/GB/GBGPUView.cs @@ -356,6 +356,9 @@ namespace BizHawk.Client.EmuHawk int* pal = (int*)_pal; byte* oam = (byte*)_oam; + // clear out the old sprite data + Win32Imports.MemSet(lockData.Scan0, 0xff, (uint)(lockData.Height * lockData.Stride)); + for (int s = 0; s < 40; s++) { int yPos = *oam++; @@ -545,7 +548,6 @@ namespace BizHawk.Client.EmuHawk bmpViewOAM.Refresh(); // oam (objects) - bmpViewOBJ.Clear(); DrawObj(bmpViewOBJ.Bmp, oam, vram, spPal, lcdc.Bit(2), _cgb); bmpViewOBJ.Refresh(); } @@ -979,7 +981,7 @@ namespace BizHawk.Client.EmuHawk private void bmpViewOBJ_MouseMove(object sender, MouseEventArgs e) { - SpriteMouseover(e.X, e.Y); + // TODO: pick out sprites from the object window based on their position } private void bmpView_MouseClick(object sender, MouseEventArgs e)