Author: fabien
Date: 2012-04-23 19:28:51 -0700 (Mon, 23 Apr 2012)
New Revision: 9393
Log:
Fixed a warning in utf8Wrap.c
Modified:
branches/branch-1.3/src/xutf8/utf8Wrap.c
Modified: branches/branch-1.3/src/xutf8/utf8Wrap.c
===================================================================
--- branches/branch-1.3/src/xutf8/utf8Wrap.c 2012-04-24 02:06:52 UTC (rev
9392)
+++ branches/branch-1.3/src/xutf8/utf8Wrap.c 2012-04-24 02:28:51 UTC (rev
9393)
@@ -587,7 +587,8 @@
int ht = 0; /* used to find max height in text */
int hs; /* "height sum" of current text segment */
int yt = 0x7FFFFFFF; /* used to find bounding rectangle delta-y */
- int res; /* result from calling XTextExtents16() - we should test this is
OK! */
+ // int res; /* result from calling XTextExtents16() - we should test this is
OK! */
+ // FC: the man does not specify error codes for it, but X will generate X
errors like BadGC or BadFont.
XCharStruct sizes;
int dir_ret = 0;
@@ -623,7 +624,7 @@
if (i > 120) {
/*** draw the buffer **/
XSetFont(display, gc, fonts[fnum]->fid);
- res = XTextExtents16(fonts[fnum], buf, i, &dir_ret, &fnt_asc, &fnt_dsc,
&sizes);
+ /* res = */ XTextExtents16(fonts[fnum], buf, i, &dir_ret, &fnt_asc,
&fnt_dsc, &sizes);
/* recover the dimensions - should verify that res == 0 first! */
wd += sizes.width; /* accumulate the width */
hs = sizes.ascent + sizes.descent; /* total height */
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit