changeset 19571:a894b3a3d28c

bug fix for starting gmplayer with -fs when using the sub window
author vayne
date Mon, 28 Aug 2006 18:42:01 +0000
parents e9ea7852e803
children 5486c0d3860f
files Gui/win32/gui.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Gui/win32/gui.c	Mon Aug 28 18:40:22 2006 +0000
+++ b/Gui/win32/gui.c	Mon Aug 28 18:42:01 2006 +0000
@@ -1375,7 +1375,7 @@
     /* our window aspect */
     sub_aspect = (float)(rect.right-rect.left)/(rect.bottom-rect.top);
 
-    style = WS_OVERLAPPEDWINDOW | WS_SYSMENU | WS_MINIMIZEBOX;
+    style = fullscreen?WS_VISIBLE | WS_POPUP:WS_OVERLAPPEDWINDOW | WS_SYSMENU | WS_MINIMIZEBOX;
     AdjustWindowRect(&rect, style, 0);
 
     if (gui_sub_pos_x >= 0)