Explorar el Código

Use character scaling in XCopyArea

Eric Pruitt hace 11 años
padre
commit
9559100130
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      st.c

+ 1 - 1
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);