mirror of
https://github.com/mpv-player/mpv
synced 2025-02-16 04:07:08 +00:00
More robust w32 -wid size handling
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28074 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
23a8967a4c
commit
70dbf549e6
@ -175,6 +175,11 @@ int vo_w32_check_events(void) {
|
||||
}
|
||||
if (WinID >= 0) {
|
||||
RECT r;
|
||||
GetClientRect(vo_window, &r);
|
||||
if (r.right != vo_dwidth || r.bottom != vo_dheight) {
|
||||
vo_dwidth = r.right; vo_dheight = r.bottom;
|
||||
event_flags |= VO_EVENT_RESIZE;
|
||||
}
|
||||
GetClientRect(WinID, &r);
|
||||
if (r.right != vo_dwidth || r.bottom != vo_dheight)
|
||||
MoveWindow(vo_window, 0, 0, r.right, r.bottom, FALSE);
|
||||
|
Loading…
Reference in New Issue
Block a user