mirror of
https://github.com/holub/mame
synced 2025-05-21 13:18:56 +03:00
Add notification of orientation of all monitors at startup via the
output system. [Laszlo Schulteisz]
This commit is contained in:
parent
55dc20119b
commit
364e13529e
@ -488,6 +488,14 @@ void osd_init(running_machine *machine)
|
|||||||
wininput_init(machine);
|
wininput_init(machine);
|
||||||
winoutput_init(machine);
|
winoutput_init(machine);
|
||||||
|
|
||||||
|
// notify listeners of screen configuration
|
||||||
|
astring tempstring;
|
||||||
|
for (win_window_info *info = win_window_list; info != NULL; info = info->next)
|
||||||
|
{
|
||||||
|
tempstring.printf("Orientation(%s)", utf8_from_tstring(info->monitor->info.szDevice));
|
||||||
|
output_set_value(tempstring, info->targetorient);
|
||||||
|
}
|
||||||
|
|
||||||
// hook up the debugger log
|
// hook up the debugger log
|
||||||
if (options_get_bool(machine->options(), WINOPTION_OSLOG))
|
if (options_get_bool(machine->options(), WINOPTION_OSLOG))
|
||||||
machine->add_logerror_callback(output_oslog);
|
machine->add_logerror_callback(output_oslog);
|
||||||
|
Loading…
Reference in New Issue
Block a user