diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2016-04-25 17:22:25 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2016-04-25 17:22:25 +0200 |
commit | 9c2ef88573827db7a9b032f7ae86580f0c285bc1 (patch) | |
tree | 25579f21730982488480e9bfe3737e3fc1c5c18c /src/osd/windows/winmain.cpp | |
parent | 5e831f6506ee06f8c30cb113551ee0fec53804db (diff) |
Revert "Temp revert of Brad changes (nw)"
This reverts commit 5e831f6506ee06f8c30cb113551ee0fec53804db.
Diffstat (limited to 'src/osd/windows/winmain.cpp')
-rw-r--r-- | src/osd/windows/winmain.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/osd/windows/winmain.cpp b/src/osd/windows/winmain.cpp index e4672c4fafb..136daea0636 100644 --- a/src/osd/windows/winmain.cpp +++ b/src/osd/windows/winmain.cpp @@ -68,11 +68,11 @@ public: char buffer[1024]; // if we are in fullscreen mode, go to windowed mode - if ((video_config.windowed == 0) && (win_window_list != nullptr)) + if ((video_config.windowed == 0) && !win_window_list.empty()) winwindow_toggle_full_screen(); vsnprintf(buffer, ARRAY_LENGTH(buffer), msg, args); - win_message_box_utf8(win_window_list ? win_window_list->platform_window<HWND>() : nullptr, buffer, emulator_info::get_appname(), MB_OK); + win_message_box_utf8(!win_window_list.empty() ? win_window_list.front()->platform_window<HWND>() : nullptr, buffer, emulator_info::get_appname(), MB_OK); } else chain_output(channel, msg, args); @@ -512,7 +512,7 @@ void windows_osd_interface::init(running_machine &machine) osd_common_t::init_subsystems(); // notify listeners of screen configuration - for (win_window_info *info = win_window_list; info != nullptr; info = info->m_next) + for (auto info : win_window_list) { machine.output().set_value(string_format("Orientation(%s)", info->m_monitor->devicename()).c_str(), info->m_targetorient); } |