mirror of https://github.com/mpv-player/mpv
change vo_w32_fullscreen to behave like vo_x11_fullscreen patch by Reimar Doeffinger <someone-guy at gmx.de>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11480 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
72c0c4f434
commit
0d327f00f2
|
@ -118,8 +118,8 @@ static void changeMode(void) {
|
||||||
vo_screenwidth = dm.dmPelsWidth;
|
vo_screenwidth = dm.dmPelsWidth;
|
||||||
vo_screenheight = dm.dmPelsHeight;
|
vo_screenheight = dm.dmPelsHeight;
|
||||||
aspect_save_screenres(vo_screenwidth, vo_screenheight);
|
aspect_save_screenres(vo_screenwidth, vo_screenheight);
|
||||||
if (vo_fs)
|
vo_dwidth = vo_screenwidth;
|
||||||
aspect(&vo_dwidth, &vo_dheight, A_ZOOM);
|
vo_dheight = vo_screenheight;
|
||||||
|
|
||||||
ChangeDisplaySettings(&dm, CDS_FULLSCREEN);
|
ChangeDisplaySettings(&dm, CDS_FULLSCREEN);
|
||||||
}
|
}
|
||||||
|
@ -264,4 +264,5 @@ void vo_w32_uninit() {
|
||||||
destroyRenderingContext();
|
destroyRenderingContext();
|
||||||
DestroyWindow(vo_hwnd);
|
DestroyWindow(vo_hwnd);
|
||||||
vo_hwnd = 0;
|
vo_hwnd = 0;
|
||||||
|
UnregisterClass(classname, 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue