aboutsummaryrefslogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
authorEric Pruitt <eric.pruitt@gmail.com>2014-01-19 10:48:35 -0600
committerRoberto E. Vargas Caballero <k0ga@shike2.com>2014-01-21 19:20:17 +0100
commit95591001306dc5c6b57f46155bd3e2b919114ea6 (patch)
tree7c2c11febf9e629a6d6750b140a0b0e80a67b60d /st.c
parentc0a56ef4be2a0f84360f41b2d45964e7ef297746 (diff)
downloadst-95591001306dc5c6b57f46155bd3e2b919114ea6.tar.gz
Use character scaling in XCopyArea
Diffstat (limited to 'st.c')
-rw-r--r--st.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/st.c b/st.c
index 48c81a2..21afb52 100644
--- 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);
remember that computers suck.