Commit 0df835af authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

win32 vout: Don't account for a container when computing full screen size

This fixes toggling fullscreen when video isn't embedded on a multi
monitor setup
parent 78d3459c
......@@ -622,10 +622,12 @@ int CommonControl(vout_display_t *vd, int query, va_list args)
.bottom = cfg->display.height,
};
AdjustWindowRect(&rect_window, EventThreadGetWindowStyle(sys->event), 0);
SetWindowPos(sys->hwnd, 0, 0, 0,
rect_window.right - rect_window.left,
rect_window.bottom - rect_window.top, SWP_NOMOVE);
if (!cfg->is_fullscreen) {
AdjustWindowRect(&rect_window, EventThreadGetWindowStyle(sys->event), 0);
SetWindowPos(sys->hwnd, 0, 0, 0,
rect_window.right - rect_window.left,
rect_window.bottom - rect_window.top, SWP_NOMOVE);
}
UpdateRects(vd, cfg, NULL, false);
return VLC_SUCCESS;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment