diff options
author | Aaron Giles <aaron@aarongiles.com> | 2010-07-29 08:41:24 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2010-07-29 08:41:24 +0000 |
commit | 364e13529e1686a13617ae51a59e43460baa5eb4 (patch) | |
tree | 99cb5fa61b19a2667c504d6af9f0126528ed1b68 | |
parent | 55dc20119b5703491438842f54310a76fc5d16aa (diff) |
Add notification of orientation of all monitors at startup via the
output system. [Laszlo Schulteisz]
-rw-r--r-- | src/osd/windows/winmain.c | 8 |
1 files changed, 8 insertions, 0 deletions
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)) |