mirror of https://github.com/mpv-player/mpv
properly redraw fullscreen window with -fs and zoom
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15886 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
e592b9391c
commit
7707fc682f
|
@ -477,6 +477,7 @@ static OSStatus WindowEventHandler(EventHandlerCallRef nextHandler, EventRef eve
|
||||||
case kEventWindowBoundsChanged:
|
case kEventWindowBoundsChanged:
|
||||||
window_resized();
|
window_resized();
|
||||||
flip_page();
|
flip_page();
|
||||||
|
window_resized();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -843,6 +844,10 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, uint32
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Show window
|
||||||
|
RepositionWindow(theWindow, NULL, kWindowCenterOnMainScreen);
|
||||||
|
ShowWindow (theWindow);
|
||||||
|
|
||||||
if(vo_fs)
|
if(vo_fs)
|
||||||
window_fullscreen();
|
window_fullscreen();
|
||||||
|
|
||||||
|
@ -857,9 +862,7 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, uint32
|
||||||
window_fullscreen();
|
window_fullscreen();
|
||||||
}
|
}
|
||||||
|
|
||||||
//Show window
|
window_resized();
|
||||||
RepositionWindow(theWindow, NULL, kWindowCenterOnMainScreen);
|
|
||||||
ShowWindow (theWindow);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue