GB GPUViwer: fix a couple bugs, still leaves a TODO

This commit is contained in:
alyosha-tas 2021-07-28 10:14:22 -04:00
parent f8df53abda
commit 6ba3bfa1a2
1 changed files with 4 additions and 2 deletions

View File

@ -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)