X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Ffont-ximage.c;h=c7b0051d752664b6e0b1722c0a1392800acceb07;hp=c8ddc4824088c3cd4f50b8dfcff489a6b45f1cdd;hb=50be9bb40dc60130c99ffa568e6677779904ff70;hpb=5f1f12f2a37da634000f96d18d59cc73a8814ef7 diff --git a/hacks/glx/font-ximage.c b/hacks/glx/font-ximage.c index c8ddc482..c7b0051d 100644 --- a/hacks/glx/font-ximage.c +++ b/hacks/glx/font-ximage.c @@ -158,15 +158,11 @@ text_to_ximage (Screen *screen, Visual *visual, while ((line = strtok(token, "\r\n"))) { XCharStruct o2; - int ascent, descent, direction, xoff2; + int ascent, descent, direction; token = 0; XTextExtents(f, line, strlen(line), &direction, &ascent, &descent, &o2); - xoff2 = (xoff + - ((overall.lbearing + overall.rbearing) - - (o2.lbearing + o2.rbearing)) / 2); - XDrawString(dpy, bitmap, gc, overall.lbearing + margin + xoff, ((f->ascent * (lines + 1)) +