mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
SDL: Fix compiling with OSX debugger.
This commit is contained in:
parent
1110777ee5
commit
cc4ff7570d
@ -1299,8 +1299,9 @@ void console_create_window(running_machine *machine)
|
||||
- (void)selectSubviewForCPU:(running_device *)device {
|
||||
const int selected = registers_view_get_subview(view);
|
||||
const registers_subview_item *subitem;
|
||||
device_state_interface *stateintf = device_state(device);
|
||||
for (subitem = registers_view_get_subview_list(view); subitem != NULL; subitem = subitem->next) {
|
||||
if (subitem->device == device) {
|
||||
if (subitem->stateintf == stateintf) {
|
||||
if (selected != subitem->index) {
|
||||
registers_view_set_subview(view, subitem->index);
|
||||
if ([[self window] firstResponder] != self)
|
||||
|
Loading…
Reference in New Issue
Block a user