GB GPUViwer: fix a couple bugs, still leaves a TODO
This commit is contained in:
parent
f8df53abda
commit
6ba3bfa1a2
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue