[MPlayer-cvslog] r35450 - in trunk/gui/wm: ws.c ws.h

ib subversion at mplayerhq.hu
Fri Nov 23 10:25:54 CET 2012


Author: ib
Date: Fri Nov 23 10:25:54 2012
New Revision: 35450

Log:
Remove dead code.

Modified:
   trunk/gui/wm/ws.c
   trunk/gui/wm/ws.h

Modified: trunk/gui/wm/ws.c
==============================================================================
--- trunk/gui/wm/ws.c	Fri Nov 23 10:20:49 2012	(r35449)
+++ trunk/gui/wm/ws.c	Fri Nov 23 10:25:54 2012	(r35450)
@@ -1297,27 +1297,6 @@ void wsSetForegroundRGB(wsTWindow *win, 
 }
 
 // ----------------------------------------------------------------------------------------------
-//    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)

Modified: trunk/gui/wm/ws.h
==============================================================================
--- trunk/gui/wm/ws.h	Fri Nov 23 10:20:49 2012	(r35449)
+++ trunk/gui/wm/ws.h	Fri Nov 23 10:25:54 2012	(r35450)
@@ -250,12 +250,6 @@ void wsSetShape(wsTWindow *win, char *da
 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);


More information about the MPlayer-cvslog mailing list