Add notification of orientation of all monitors at startup via the

output system. [Laszlo Schulteisz]
This commit is contained in:
Aaron Giles 2010-07-29 08:41:24 +00:00
parent 55dc20119b
commit 364e13529e

View File

@ -488,6 +488,14 @@ void osd_init(running_machine *machine)
wininput_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
if (options_get_bool(machine->options(), WINOPTION_OSLOG))
machine->add_logerror_callback(output_oslog);