summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/debugger/debugwin.cpp
diff options
context:
space:
mode:
author Brad Hughes <bradhugh@outlook.com>2016-04-20 10:24:59 -0400
committer Brad Hughes <bradhugh@outlook.com>2016-04-21 11:10:03 -0400
commit1a844a49c5fe01552347ea086ef7c65874dadf3e (patch)
tree2ff1ec2357e19793146089898f9e3e26f0bca94b /src/osd/modules/debugger/debugwin.cpp
parentff27716bec51cad5f073019bee093a2deee6fc47 (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.cpp2
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();
}