diff lwlib/xlwtabs.c @ 3374:174eb4da74fb

[xemacs-hg @ 2006-05-02 15:30:31 by james] Quiet some warnings when building lwlib. See xemacs-patches message with ID <m3d5f6yibr.fsf@jerrypc.cs.usu.edu>.
author james
date Tue, 02 May 2006 15:30:32 +0000
parents ad2f4ae9895b
children 6aa26bef0527
line wrap: on
line diff
--- a/lwlib/xlwtabs.c	Mon May 01 21:50:54 2006 +0000
+++ b/lwlib/xlwtabs.c	Tue May 02 15:30:32 2006 +0000
@@ -1708,8 +1708,8 @@
 	      XGlyphInfo glyphinfo;
 	      XftColor colorDBG;
 	      XftColorAllocName (dpy, visual, cmap, "wheat", &colorDBG);
-	      XftTextExtents8 (dpy, renderFont, lbl, (int) strlen (lbl),
-			       &glyphinfo);
+	      XftTextExtents8 (dpy, renderFont, (FcChar8 *) lbl,
+			       (int) strlen (lbl), &glyphinfo);
 	      /* #### unnecessary? for the moment, give visual extent */
 	      /* draw background rect */
 #if 1
@@ -1754,7 +1754,7 @@
 		}
 	      XftDrawString8 (xftDraw, &color, renderFont,
 			      x+tab->tabs.l_x, y+tab->tabs.l_y,
-			      lbl, (int) strlen (lbl));
+			      (FcChar8 *) lbl, (int) strlen (lbl));
 	      XftDrawDestroy (xftDraw);
 #else
 	      XDrawString(dpy,win,gc,
@@ -1988,7 +1988,8 @@
 	{
 #ifdef USE_XFT_TABS
 	  tab->tabs.width += x_xft_text_width (XtDisplay(tw), font,
-						 lbl, (int)strlen(lbl)) + iw;
+					       (FcChar8 *) lbl,
+					       (int)strlen(lbl)) + iw;
 	  tab->tabs.l_y = (tw->tabs.tab_height
 			   + tw->tabs.renderFont->ascent
 			   /* #### how can this subtraction be correct? */