Mercurial > mplayer.hg
changeset 35647:a30496350cb9
Don't allow shrinking the main window.
Its fixed size is defined in the skin file.
author | ib |
---|---|
date | Mon, 14 Jan 2013 17:27:45 +0000 |
parents | 0e0775a09c97 |
children | 238c621810b6 |
files | gui/interface.c gui/ui/actions.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/interface.c Mon Jan 14 15:22:16 2013 +0000 +++ b/gui/interface.c Mon Jan 14 17:27:45 2013 +0000 @@ -184,7 +184,7 @@ // 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);
--- a/gui/ui/actions.c Mon Jan 14 15:22:16 2013 +0000 +++ b/gui/ui/actions.c Mon Jan 14 17:27:45 2013 +0000 @@ -232,7 +232,7 @@ 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);