Mercurial > mplayer.hg
diff gui/wm/ws.c @ 35683:75155d8a9c7e
Remove parameter for border_width from wsWindowCreate().
It's nothing but 0 anyway.
Additionally, switch position of mouse cursor and window properties
parameters.
author | ib |
---|---|
date | Fri, 18 Jan 2013 01:13:50 +0000 |
parents | fcb8f12cefa7 |
children | 6996700b8d1f |
line wrap: on
line diff
--- a/gui/wm/ws.c Fri Jan 18 00:48:26 2013 +0000 +++ b/gui/wm/ws.c Fri Jan 18 01:13:50 2013 +0000 @@ -829,11 +829,10 @@ // wsWindowCreate: create a new window on the screen. // x,y : window position // w,h : window size -// b : window border size // c : mouse cursor visible // p : properties - "decoration", visible titlebar, etc ... // ---------------------------------------------------------------------------------------------- -void wsWindowCreate(wsWindow *win, int x, int y, int w, int h, int b, int c, unsigned char p, char *label) +void wsWindowCreate(wsWindow *win, int x, int y, int w, int h, unsigned char p, int c, char *label) { int depth; @@ -851,8 +850,6 @@ win->OldWidth = win->Width; win->OldHeight = win->Height; -/* Border size for window. */ - win->BorderWidth = b; /* Hide Mouse Cursor */ win->wsCursor = None; win->wsMouseEventType = c; @@ -911,7 +908,7 @@ win->WindowID = XCreateWindow(wsDisplay, (win->Parent != 0 ? win->Parent : wsRootWin), - win->X, win->Y, win->Width, win->Height, win->BorderWidth, + win->X, win->Y, win->Width, win->Height, 0, win->VisualInfo.depth, InputOutput, win->VisualInfo.visual,