diff options
| author | 2010-10-13 06:20:10 +0000 | |
|---|---|---|
| committer | 2010-10-13 06:20:10 +0000 | |
| commit | 3beb0ec2462e3251000e4c479bbaeaf775cb44d2 (patch) | |
| tree | 8ede7cad7423199a79f6abc18df352d564d49384 /src/emu/debug/debugcmd.c | |
| parent | f391c5f8d797a190a789ab3bc35e0e3fbce5df29 (diff) | |
Converted render.c objects into C++ objects. Updated all callers.
Diffstat (limited to 'src/emu/debug/debugcmd.c')
| -rw-r--r-- | src/emu/debug/debugcmd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/debug/debugcmd.c b/src/emu/debug/debugcmd.c index e7deb65a964..dc4e644b6b4 100644 --- a/src/emu/debug/debugcmd.c +++ b/src/emu/debug/debugcmd.c @@ -1114,7 +1114,7 @@ static void execute_comment(running_machine *machine, int ref, int params, const /* Now try adding the comment */ cpu->debug()->comment_add(address, param[1], 0x00ff0000); - cpu->machine->m_debug_view->update_all(DVT_DISASSEMBLY); + cpu->machine->debug_view().update_all(DVT_DISASSEMBLY); } @@ -1138,7 +1138,7 @@ static void execute_comment_del(running_machine *machine, int ref, int params, c /* If it's a number, it must be an address */ /* The bankoff and cbn will be pulled from what's currently active */ cpu->debug()->comment_remove(address); - cpu->machine->m_debug_view->update_all(DVT_DISASSEMBLY); + cpu->machine->debug_view().update_all(DVT_DISASSEMBLY); } @@ -2427,9 +2427,9 @@ static void execute_snap(running_machine *machine, int ref, int params, const ch const char *filename = param[0]; int scrnum = (params > 1) ? atoi(param[1]) : 0; - device_t *screen = machine->m_devicelist.find(SCREEN, scrnum); + screen_device *screen = downcast<screen_device *>(machine->m_devicelist.find(SCREEN, scrnum)); - if ((screen == NULL) || !render_is_live_screen(screen)) + if ((screen == NULL) || !machine->render().is_live(*screen)) { debug_console_printf(machine, "Invalid screen number '%d'\n", scrnum); return; |
