mirror of
https://github.com/holub/mame
synced 2025-10-08 09:30:17 +03:00
dvstate beamx/beamy/frame: set to 0 on invalid(eg. screenless) (nw)
This commit is contained in:
parent
a3bcad51b0
commit
b116a0166f
@ -218,35 +218,23 @@ void debug_view_state::view_update()
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case REG_CYCLES:
|
case REG_CYCLES:
|
||||||
if (source.m_execintf)
|
curitem.update(source.m_execintf ? source.m_execintf->cycles_remaining() : 0, cycles_changed);
|
||||||
{
|
|
||||||
curitem.update(source.m_execintf->cycles_remaining(), cycles_changed);
|
|
||||||
valstr = string_format("%-8d", curitem.value());
|
valstr = string_format("%-8d", curitem.value());
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case REG_BEAMX:
|
case REG_BEAMX:
|
||||||
if (screen)
|
curitem.update(screen ? screen->hpos() : 0, cycles_changed);
|
||||||
{
|
|
||||||
curitem.update(screen->hpos(), cycles_changed);
|
|
||||||
valstr = string_format("%4d", curitem.value());
|
valstr = string_format("%4d", curitem.value());
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case REG_BEAMY:
|
case REG_BEAMY:
|
||||||
if (screen)
|
curitem.update(screen ? screen->vpos() : 0, cycles_changed);
|
||||||
{
|
|
||||||
curitem.update(screen->vpos(), cycles_changed);
|
|
||||||
valstr = string_format("%4d", curitem.value());
|
valstr = string_format("%4d", curitem.value());
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case REG_FRAME:
|
case REG_FRAME:
|
||||||
if (screen)
|
curitem.update(screen ? screen->frame_number() : 0, cycles_changed);
|
||||||
{
|
valstr = string_format("%-6d", curitem.value());
|
||||||
curitem.update(screen->frame_number(), cycles_changed);
|
|
||||||
valstr = string_format("%6d", curitem.value());
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user