# HG changeset patch # User ib # Date 1353662754 0 # Node ID 90d181c052e52316609574775cdab5401734ade9 # Parent c8478a499a173351a0f3652d1a141292a65d40be Remove dead code. diff -r c8478a499a17 -r 90d181c052e5 gui/wm/ws.c --- 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) diff -r c8478a499a17 -r 90d181c052e5 gui/wm/ws.h --- 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);