[hackers] [st] Use character scaling in XCopyArea || Eric Pruitt
commit 95591001306dc5c6b57f46155bd3e2b919114ea6
Author: Eric Pruitt <eric.pruitt_AT_gmail.com>
Date: Sun Jan 19 10:48:35 2014 -0600
Use character scaling in XCopyArea
diff --git a/st.c b/st.c
index 48c81a2..21afb52 100644
--- a/st.c
+++ b/st.c
_AT_@ -3302,7 +3302,7 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) {
width, 1);
}
XCopyArea(xw.dpy, xw.buf, xw.win, dc.gc, winx, winy, width,
- font->ascent + font->descent, winx, winy);
+ CEIL((font->ascent + font->descent) * chscale), winx, winy);
/* Reset clip to none. */
XftDrawSetClip(xw.draw, 0);
Received on Tue Jan 21 2014 - 19:21:50 CET
This archive was generated by hypermail 2.3.0
: Tue Jan 21 2014 - 19:24:15 CET