Debugger: Fixed double-click action in sprite viewer
This commit is contained in:
parent
5656c8a071
commit
46ecd361f7
1 changed files with 2 additions and 2 deletions
|
@ -273,11 +273,11 @@ namespace Mesen.GUI.Debugger.Controls
|
||||||
|
|
||||||
private void ShowInChrViewer()
|
private void ShowInChrViewer()
|
||||||
{
|
{
|
||||||
if(_contextMenuSpriteIndex < 0) {
|
if(_selectedSprite < 0 && _contextMenuSpriteIndex < 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ramAddr = _contextMenuSpriteIndex * 4;
|
int ramAddr = (_selectedSprite >= 0 ? _selectedSprite : _contextMenuSpriteIndex) * 4;
|
||||||
int tileIndex = _spriteRam[ramAddr + 1];
|
int tileIndex = _spriteRam[ramAddr + 1];
|
||||||
int palette = (_spriteRam[ramAddr + 2] & 0x03) + 4;
|
int palette = (_spriteRam[ramAddr + 2] & 0x03) + 4;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue