mirror of
https://github.com/holub/mame
synced 2025-06-05 20:33:45 +03:00
fix for sdl compile (nw)
This commit is contained in:
parent
929b243491
commit
c859a6332e
@ -461,7 +461,7 @@ static int drawsdl_window_create(sdl_window_info *window, int width, int height)
|
||||
if (!found)
|
||||
{
|
||||
mame_printf_verbose("window: Scale mode %s not supported!\n", sm->name);
|
||||
ui_popup_time(3, "Scale mode %s not supported!", sm->name);
|
||||
window->machine().ui().popup_time(3, "Scale mode %s not supported!", sm->name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -571,14 +571,14 @@ static void check_osd_inputs(running_machine &machine)
|
||||
{
|
||||
//FIXME: on a per window basis
|
||||
video_config.fullstretch = !video_config.fullstretch;
|
||||
ui_popup_time(1, "Uneven stretch %s", video_config.fullstretch? "enabled":"disabled");
|
||||
machine.ui().popup_time(1, "Uneven stretch %s", video_config.fullstretch? "enabled":"disabled");
|
||||
}
|
||||
|
||||
if (ui_input_pressed(machine, IPT_OSD_4))
|
||||
{
|
||||
//FIXME: on a per window basis
|
||||
video_config.keepaspect = !video_config.keepaspect;
|
||||
ui_popup_time(1, "Keepaspect %s", video_config.keepaspect? "enabled":"disabled");
|
||||
machine.ui().popup_time(1, "Keepaspect %s", video_config.keepaspect? "enabled":"disabled");
|
||||
}
|
||||
|
||||
if (USE_OPENGL || SDLMAME_SDL2)
|
||||
@ -587,7 +587,7 @@ static void check_osd_inputs(running_machine &machine)
|
||||
if (ui_input_pressed(machine, IPT_OSD_5))
|
||||
{
|
||||
video_config.filter = !video_config.filter;
|
||||
ui_popup_time(1, "Filter %s", video_config.filter? "enabled":"disabled");
|
||||
machine.ui().popup_time(1, "Filter %s", video_config.filter? "enabled":"disabled");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -587,7 +587,7 @@ void sdlwindow_modify_prescale(running_machine &machine, sdl_window_info *window
|
||||
execute_async_wait(destroy_all_textures_wt, &wp);
|
||||
window->prescale = new_prescale;
|
||||
}
|
||||
ui_popup_time(1, "Prescale %d", window->prescale);
|
||||
machine.ui().popup_time(1, "Prescale %d", window->prescale);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user