diff options
author | 2016-04-20 10:24:59 -0400 | |
---|---|---|
committer | 2016-04-21 11:10:03 -0400 | |
commit | 1a844a49c5fe01552347ea086ef7c65874dadf3e (patch) | |
tree | 2ff1ec2357e19793146089898f9e3e26f0bca94b /src/osd/modules/debugger/debugwin.cpp | |
parent | ff27716bec51cad5f073019bee093a2deee6fc47 (diff) |
Refactor OSD window.
Unified renderer in osd_window as std::unique_ptr
Made windows all std::shared_ptr<window_type>
Made window lists std::list<std::shared_ptr<window_type>>
Updated OSD SDL worker_param to not use malloc (not compatible with smart
pointers)
Made renderer pointer to window a weak reference. May not be available
during destruction of the window.
Diffstat (limited to 'src/osd/modules/debugger/debugwin.cpp')
-rw-r--r-- | src/osd/modules/debugger/debugwin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osd/modules/debugger/debugwin.cpp b/src/osd/modules/debugger/debugwin.cpp index c3994efbd2f..a32405c4aa8 100644 --- a/src/osd/modules/debugger/debugwin.cpp +++ b/src/osd/modules/debugger/debugwin.cpp @@ -236,7 +236,7 @@ void debugger_windows::show_all() void debugger_windows::hide_all() { - SetForegroundWindow(win_window_list->platform_window<HWND>()); + SetForegroundWindow(win_window_list.front()->platform_window<HWND>()); for (debugwin_info &info : m_window_list) info.hide(); } |