From 364e13529e1686a13617ae51a59e43460baa5eb4 Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Thu, 29 Jul 2010 08:41:24 +0000 Subject: [PATCH] Add notification of orientation of all monitors at startup via the output system. [Laszlo Schulteisz] --- src/osd/windows/winmain.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/osd/windows/winmain.c b/src/osd/windows/winmain.c index b1a4200b0e0..9d1a5182e09 100644 --- a/src/osd/windows/winmain.c +++ b/src/osd/windows/winmain.c @@ -487,6 +487,14 @@ void osd_init(running_machine *machine) winsound_init(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))