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
Родитель 4b3ed26016
Коммит 26f8c13f7b
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -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);