comparison gui/interface.c @ 35658:d798beebfe71

Remove symbolic constant wsNoBorder. Where it was used, it should be a numerical value, i.e. the number of pixels.
author ib
date Tue, 15 Jan 2013 12:54:04 +0000
parents eadf0731a29a
children d1f84b219340
comparison
equal deleted inserted replaced
35657:eadf0731a29a 35658:d798beebfe71
170 } 170 }
171 171
172 if (guiWinID >= 0) 172 if (guiWinID >= 0)
173 guiApp.mainWindow.Parent = guiWinID; 173 guiApp.mainWindow.Parent = guiWinID;
174 174
175 wsCreateWindow(&guiApp.videoWindow, guiApp.video.x, guiApp.video.y, guiApp.video.width, guiApp.video.height, wsNoBorder, wsShowMouseCursor | wsHandleMouseButton | wsHandleMouseMove, wsShowFrame | wsHideWindow | wsWaitMap | wsAspect, "MPlayer - Video"); 175 wsCreateWindow(&guiApp.videoWindow, guiApp.video.x, guiApp.video.y, guiApp.video.width, guiApp.video.height, 0, wsShowMouseCursor | wsHandleMouseButton | wsHandleMouseMove, wsShowFrame | wsHideWindow | wsWaitMap | wsAspect, "MPlayer - Video");
176 wsDestroyImage(&guiApp.videoWindow); 176 wsDestroyImage(&guiApp.videoWindow);
177 wsCreateImage(&guiApp.videoWindow, guiApp.video.Bitmap.Width, guiApp.video.Bitmap.Height); 177 wsCreateImage(&guiApp.videoWindow, guiApp.video.Bitmap.Width, guiApp.video.Bitmap.Height);
178 wsXDNDMakeAwareness(&guiApp.videoWindow); 178 wsXDNDMakeAwareness(&guiApp.videoWindow);
179 179
180 WinID = guiApp.videoWindow.WindowID; 180 WinID = guiApp.videoWindow.WindowID;
183 uiPlaybarInit(); 183 uiPlaybarInit();
184 184
185 // i=wsHideFrame|wsMaxSize|wsHideWindow; 185 // i=wsHideFrame|wsMaxSize|wsHideWindow;
186 // if ( guiApp.mainDecoration ) i=wsShowFrame|wsMaxSize|wsHideWindow; 186 // if ( guiApp.mainDecoration ) i=wsShowFrame|wsMaxSize|wsHideWindow;
187 i = wsShowFrame | wsMinSize | wsMaxSize | wsHideWindow; 187 i = wsShowFrame | wsMinSize | wsMaxSize | wsHideWindow;
188 wsCreateWindow(&guiApp.mainWindow, guiApp.main.x, guiApp.main.y, guiApp.main.width, guiApp.main.height, wsNoBorder, wsShowMouseCursor | wsHandleMouseButton | wsHandleMouseMove, i, "MPlayer"); 188 wsCreateWindow(&guiApp.mainWindow, guiApp.main.x, guiApp.main.y, guiApp.main.width, guiApp.main.height, 0, wsShowMouseCursor | wsHandleMouseButton | wsHandleMouseMove, i, "MPlayer");
189 wsSetShape(&guiApp.mainWindow, guiApp.main.Mask.Image); 189 wsSetShape(&guiApp.mainWindow, guiApp.main.Mask.Image);
190 wsXDNDMakeAwareness(&guiApp.mainWindow); 190 wsXDNDMakeAwareness(&guiApp.mainWindow);
191 191
192 mp_msg(MSGT_GPLAYER, MSGL_DBG2, "[interface] screen depth: %d\n", wsDepthOnScreen); 192 mp_msg(MSGT_GPLAYER, MSGL_DBG2, "[interface] screen depth: %d\n", wsDepthOnScreen);
193 mp_msg(MSGT_GPLAYER, MSGL_DBG2, "[interface] mainWindow ID: 0x%x\n", (int)guiApp.mainWindow.WindowID); 193 mp_msg(MSGT_GPLAYER, MSGL_DBG2, "[interface] mainWindow ID: 0x%x\n", (int)guiApp.mainWindow.WindowID);