Condition should be USE_XFT, not USE_XPM
This commit is contained in:
committed by
Pasi Kallinen
parent
737b3ac89a
commit
9e57c85b16
+3
-3
@@ -776,7 +776,7 @@ tty_render_text(Widget w, const XRectangle *clip, int x, int y,
|
|||||||
Pixel fgpixel, bgpixel;
|
Pixel fgpixel, bgpixel;
|
||||||
tty_status_colors(w, color, attr, &fgpixel, &bgpixel);
|
tty_status_colors(w, color, attr, &fgpixel, &bgpixel);
|
||||||
|
|
||||||
#ifdef USE_XPM
|
#ifdef USE_XFT
|
||||||
|
|
||||||
/* Get the font */
|
/* Get the font */
|
||||||
XftFont *font = X11_new_font(w, attr, NHW_STATUS);
|
XftFont *font = X11_new_font(w, attr, NHW_STATUS);
|
||||||
@@ -872,7 +872,7 @@ tty_render_text(Widget w, const XRectangle *clip, int x, int y,
|
|||||||
XftDrawDestroy(draw);
|
XftDrawDestroy(draw);
|
||||||
X11_release_font(w, font);
|
X11_release_font(w, font);
|
||||||
|
|
||||||
#else /* !USE_XPM */
|
#else /* !USE_XFT */
|
||||||
|
|
||||||
Arg args[5];
|
Arg args[5];
|
||||||
Cardinal num_args;
|
Cardinal num_args;
|
||||||
@@ -1007,7 +1007,7 @@ tty_render_text(Widget w, const XRectangle *clip, int x, int y,
|
|||||||
if (font_italic != NULL) {
|
if (font_italic != NULL) {
|
||||||
XFreeFont(XtDisplay(w), font_italic);
|
XFreeFont(XtDisplay(w), font_italic);
|
||||||
}
|
}
|
||||||
#endif /* ?USE_XPM */
|
#endif /* ?USE_XFT */
|
||||||
|
|
||||||
/* Caller will advance x by the width */
|
/* Caller will advance x by the width */
|
||||||
return width;
|
return width;
|
||||||
|
|||||||
Reference in New Issue
Block a user