Mercurial > mplayer.hg
changeset 35356:90d181c052e5
Remove dead code.
author | ib |
---|---|
date | Fri, 23 Nov 2012 09:25:54 +0000 |
parents | c8478a499a17 |
children | 80fe9ad7f318 |
files | gui/wm/ws.c gui/wm/ws.h |
diffstat | 2 files changed, 0 insertions(+), 27 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/wm/ws.c Fri Nov 23 09:20:49 2012 +0000 +++ b/gui/wm/ws.c Fri Nov 23 09:25:54 2012 +0000 @@ -1297,27 +1297,6 @@ } // ---------------------------------------------------------------------------------------------- -// Draw string at x,y with fc ( foreground color ) and bc ( background color ). -// ---------------------------------------------------------------------------------------------- -void wsDrawString(wsTWindow win, int x, int y, char *str, int fc, int bc) -{ - XSetForeground(wsDisplay, win.wGC, bc); - XFillRectangle(wsDisplay, win.WindowID, win.wGC, x, y, - XTextWidth(win.Font, str, strlen(str)) + 20, - win.FontHeight + 2); - XSetForeground(wsDisplay, win.wGC, fc); - XDrawString(wsDisplay, win.WindowID, win.wGC, x + 10, y + 13, str, strlen(str)); -} - -// ---------------------------------------------------------------------------------------------- -// Calculation string width. -// ---------------------------------------------------------------------------------------------- -int wsTextWidth(wsTWindow win, char *str) -{ - return XTextWidth(win.Font, str, strlen(str)) + 20; -} - -// ---------------------------------------------------------------------------------------------- // Show / hide mouse cursor. // ---------------------------------------------------------------------------------------------- void wsVisibleMouse(wsTWindow *win, int m)
--- a/gui/wm/ws.h Fri Nov 23 09:20:49 2012 +0000 +++ b/gui/wm/ws.h Fri Nov 23 09:25:54 2012 +0000 @@ -250,12 +250,6 @@ void wsSetIcon(Display *dpy, Window win, guiIcon_t *icon); // ---------------------------------------------------------------------------------------------- -// Draw string at x,y with fc ( foreground color ) and bc ( background color ). -// ---------------------------------------------------------------------------------------------- -void wsDrawString(wsTWindow win, int x, int y, char *str, int fc, int bc); -int wsTextWidth(wsTWindow win, char *str); - -// ---------------------------------------------------------------------------------------------- // Show / hide mouse cursor. // ---------------------------------------------------------------------------------------------- void wsVisibleMouse(wsTWindow *win, int m);