1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-10 23:58:06 -05:00

Don't call SetFractEnable every time we draw some text, since

SetFractEnable unconditionally flushes the Font Manager's width cache,
and the default is fine for us anyway.  This more or less doubles
redraw speed, which is nice, but still not really fast enough.

[originally from svn r2263]
This commit is contained in:
Ben Harris 2002-11-28 21:10:55 +00:00
parent 4b3ed26016
commit 26f8c13f7b

View File

@ -1,4 +1,4 @@
/* $Id: macterm.c,v 1.14 2002/11/28 21:02:07 ben Exp $ */
/* $Id: macterm.c,v 1.15 2002/11/28 21:10:55 ben Exp $ */
/*
* Copyright (c) 1999 Simon Tatham
* Copyright (c) 1999, 2002 Ben Harris
@ -843,7 +843,6 @@ void do_text(Context ctx, int x, int y, char *text, int len,
TextFace(style);
TextSize(s->cfg.fontheight);
TextMode(srcOr);
SetFractEnable(FALSE); /* We want characters on pixel boundaries */
if (HAVE_COLOR_QD())
if (style & bold) {
SpaceExtra(s->font_boldadjust << 16);