mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Reimplement win32_monitor_from_window
This commit is contained in:
parent
f490b2b58a
commit
2d649f5147
1 changed files with 2 additions and 3 deletions
|
@ -161,9 +161,8 @@ static BOOL CALLBACK win32_monitor_enum_proc(HMONITOR hMonitor,
|
|||
void win32_monitor_from_window(void)
|
||||
{
|
||||
#ifndef _XBOX
|
||||
HWND data = win32_get_window();
|
||||
win32_monitor_last = MonitorFromWindow(data, MONITOR_DEFAULTTONEAREST);
|
||||
DestroyWindow(data);
|
||||
win32_monitor_last = MonitorFromWindow(&main_window->hwnd, MONITOR_DEFAULTTONEAREST);
|
||||
ui_window_win32_destroy(&main_window);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue