[MPlayer-cvslog] r35741 - in trunk/gui: interface.c ui/actions.c

ib subversion at mplayerhq.hu
Mon Jan 14 18:27:45 CET 2013


Author: ib
Date: Mon Jan 14 18:27:45 2013
New Revision: 35741

Log:
Don't allow shrinking the main window.

Its fixed size is defined in the skin file.

Modified:
   trunk/gui/interface.c
   trunk/gui/ui/actions.c

Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c	Mon Jan 14 16:22:16 2013	(r35740)
+++ trunk/gui/interface.c	Mon Jan 14 18:27:45 2013	(r35741)
@@ -184,7 +184,7 @@ void guiInit(void)
 
 // i=wsHideFrame|wsMaxSize|wsHideWindow;
 // if ( guiApp.mainDecoration ) i=wsShowFrame|wsMaxSize|wsHideWindow;
-    i = wsShowFrame | wsMaxSize | wsHideWindow;
+    i = wsShowFrame | wsMinSize | wsMaxSize | wsHideWindow;
     wsCreateWindow(&guiApp.mainWindow, guiApp.main.x, guiApp.main.y, guiApp.main.width, guiApp.main.height, wsNoBorder, wsShowMouseCursor | wsHandleMouseButton | wsHandleMouseMove, i, "MPlayer");
     wsSetShape(&guiApp.mainWindow, guiApp.main.Mask.Image);
     wsXDNDMakeAwareness(&guiApp.mainWindow);

Modified: trunk/gui/ui/actions.c
==============================================================================
--- trunk/gui/ui/actions.c	Mon Jan 14 16:22:16 2013	(r35740)
+++ trunk/gui/ui/actions.c	Mon Jan 14 18:27:45 2013	(r35741)
@@ -232,7 +232,7 @@ void uiChangeSkin(char *name)
 
     wsDestroyWindow(&guiApp.mainWindow);
 
-    wsCreateWindow(&guiApp.mainWindow, guiApp.main.x, guiApp.main.y, guiApp.main.width, guiApp.main.height, wsNoBorder, wsShowMouseCursor | wsHandleMouseButton | wsHandleMouseMove, wsShowFrame | wsMaxSize | wsHideWindow, "MPlayer");
+    wsCreateWindow(&guiApp.mainWindow, guiApp.main.x, guiApp.main.y, guiApp.main.width, guiApp.main.height, wsNoBorder, wsShowMouseCursor | wsHandleMouseButton | wsHandleMouseMove, wsShowFrame | wsMinSize | wsMaxSize | wsHideWindow, "MPlayer");
     wsCreateImage(&guiApp.mainWindow, guiApp.main.Bitmap.Width, guiApp.main.Bitmap.Height);
     wsSetShape(&guiApp.mainWindow, guiApp.main.Mask.Image);
     wsSetIcon(wsDisplay, guiApp.mainWindow.WindowID, &guiIcon);


More information about the MPlayer-cvslog mailing list