summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libvo/w32_common.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libvo/w32_common.c b/libvo/w32_common.c
index ec18e42637..a6d770149a 100644
--- a/libvo/w32_common.c
+++ b/libvo/w32_common.c
@@ -118,8 +118,8 @@ static void changeMode(void) {
vo_screenwidth = dm.dmPelsWidth;
vo_screenheight = dm.dmPelsHeight;
aspect_save_screenres(vo_screenwidth, vo_screenheight);
- if (vo_fs)
- aspect(&vo_dwidth, &vo_dheight, A_ZOOM);
+ vo_dwidth = vo_screenwidth;
+ vo_dheight = vo_screenheight;
ChangeDisplaySettings(&dm, CDS_FULLSCREEN);
}
@@ -264,4 +264,5 @@ void vo_w32_uninit() {
destroyRenderingContext();
DestroyWindow(vo_hwnd);
vo_hwnd = 0;
+ UnregisterClass(classname, 0);
}