diff options
| author | 2016-02-18 18:11:42 +0100 | |
|---|---|---|
| committer | 2016-02-21 03:03:24 +0100 | |
| commit | 09f03905fd7400f90b79e346f2f2d94d7c4ce789 (patch) | |
| tree | 4451d4b77648975fdc835e391d7dfd49cdac6d3b /src/osd/windows/video.cpp | |
| parent | 9a47a870df619656e9092f2f77622e84e640307a (diff) | |
More reshuffling, nw
Diffstat (limited to 'src/osd/windows/video.cpp')
| -rw-r--r-- | src/osd/windows/video.cpp | 38 |
1 files changed, 35 insertions, 3 deletions
diff --git a/src/osd/windows/video.cpp b/src/osd/windows/video.cpp index c814310fb29..44106621816 100644 --- a/src/osd/windows/video.cpp +++ b/src/osd/windows/video.cpp @@ -12,6 +12,7 @@ // MAME headers #include "emu.h" +#include "ui/ui.h" #include "emuopts.h" #include "render.h" #include "uiinput.h" @@ -66,8 +67,6 @@ static osd_window_config windows[MAX_WINDOWS]; // configuration data pe bool windows_osd_interface::video_init() { - int index; - // extract data from the options extract_video_config(); @@ -79,14 +78,47 @@ bool windows_osd_interface::video_init() // create the windows windows_options &options = downcast<windows_options &>(machine().options()); - for (index = 0; index < video_config.numscreens; index++) + for (int index = 0; index < video_config.numscreens; index++) + { win_window_info::create(machine(), index, osd_monitor_info::pick_monitor(options, index), &windows[index]); + } + + m_sliders = nullptr; + slider_state *curr = m_sliders; + for (win_window_info *info = win_window_list; info != nullptr; info = info->m_next) + { + slider_state *window_sliders = info->m_renderer->get_slider_list(); + if (window_sliders != nullptr) + { + if (m_sliders == nullptr) + { + m_sliders = curr = window_sliders; + } + else + { + while (curr->next != nullptr) + { + curr = curr->next; + } + curr->next = window_sliders; + } + } + } + if (video_config.mode != VIDEO_MODE_NONE) SetForegroundWindow(win_window_list->m_hwnd); return true; } +//============================================================ +// get_slider_list +//============================================================ + +slider_state *windows_osd_interface::get_slider_list() +{ + return m_sliders; +} //============================================================ // video_exit |
