Xinqi Bao's Git
projects
/
st.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
| inline |
side by side
Use character scaling in XCopyArea
[st.git]
/
st.c
diff --git
a/st.c
b/st.c
index
48c81a2
..
21afb52
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);