mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-12 19:06:36 +00:00
Fixed a regression with font rendering.
Fixed a regression which causes fonts to not be rendered properly with certain types of windows.
This commit is contained in:
parent
4b1728316e
commit
2469b9bea9
@ -1,4 +1,6 @@
|
||||
2009-06-09
|
||||
* Fixed a regression which causes fonts to not be rendered properly with
|
||||
certain types of windows
|
||||
* Added format_human_readable option (sf.net #2803345, thanks Vincent)
|
||||
* Fix bug in comments within TEXT (where the line contains just '#')
|
||||
(sf.net #2803586), thanks Pavelo
|
||||
|
@ -6653,6 +6653,7 @@ static void draw_text(void)
|
||||
/* draw text */
|
||||
special_index = 0;
|
||||
}
|
||||
setup_fonts();
|
||||
#endif /* X11 */
|
||||
for_each_line(text_buffer, draw_line);
|
||||
}
|
||||
|
@ -38,7 +38,10 @@ void setup_fonts(void)
|
||||
return;
|
||||
}
|
||||
#ifdef XFT
|
||||
if (use_xft && !window.xftdraw) {
|
||||
if (use_xft) {
|
||||
if (window.xftdraw) {
|
||||
XftDrawDestroy(window.xftdraw);
|
||||
}
|
||||
window.xftdraw = XftDrawCreate(display, window.drawable,
|
||||
DefaultVisual(display, screen), DefaultColormap(display, screen));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user