]> git.armaanb.net Git - st.git/commitdiff
Use character scaling in XCopyArea
authorEric Pruitt <eric.pruitt@gmail.com>
Sun, 19 Jan 2014 16:48:35 +0000 (10:48 -0600)
committerRoberto E. Vargas Caballero <k0ga@shike2.com>
Tue, 21 Jan 2014 18:20:17 +0000 (19:20 +0100)
st.c

diff --git a/st.c b/st.c
index 48c81a26e04bc6b167515c3793667a76ba210bdc..21afb529803a0a1402aaf43775c4589d74f6e5c7 100644 (file)
--- a/st.c
+++ b/st.c
@@ -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);