mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-16 03:53:01 -05:00
Remove debugging printfs from mac_workoutfontscale().
[originally from svn r2595]
This commit is contained in:
parent
f6cc852c5d
commit
0edb75b696
@ -1,4 +1,4 @@
|
|||||||
/* $Id: macterm.c,v 1.47 2003/01/14 18:43:26 ben Exp $ */
|
/* $Id: macterm.c,v 1.48 2003/01/14 18:44:34 ben Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1999 Simon Tatham
|
* Copyright (c) 1999 Simon Tatham
|
||||||
* Copyright (c) 1999, 2002 Ben Harris
|
* Copyright (c) 1999, 2002 Ben Harris
|
||||||
@ -208,11 +208,9 @@ static void mac_workoutfontscale(Session *s, int wantwidth,
|
|||||||
const char text = 'W';
|
const char text = 'W';
|
||||||
FontInfo fi;
|
FontInfo fi;
|
||||||
|
|
||||||
fprintf(stderr, "want width = %d\n", wantwidth);
|
|
||||||
numer.v = denom.v = 1; /* always */
|
numer.v = denom.v = 1; /* always */
|
||||||
numer.h = denom.h = 1;
|
numer.h = denom.h = 1;
|
||||||
for (i = 0; i < 3; i++) {
|
for (i = 0; i < 3; i++) {
|
||||||
fprintf(stderr, "Trying %d:%d\n", numer.h, denom.h);
|
|
||||||
tmpnumer = numer;
|
tmpnumer = numer;
|
||||||
tmpdenom = denom;
|
tmpdenom = denom;
|
||||||
if (s->window->grafProcs != NULL)
|
if (s->window->grafProcs != NULL)
|
||||||
@ -223,7 +221,6 @@ static void mac_workoutfontscale(Session *s, int wantwidth,
|
|||||||
/* The result of StdTxMeas must be scaled by the factors it returns. */
|
/* The result of StdTxMeas must be scaled by the factors it returns. */
|
||||||
gotwidth = FixRound(FixMul(gotwidth << 16,
|
gotwidth = FixRound(FixMul(gotwidth << 16,
|
||||||
FixRatio(tmpnumer.h, tmpdenom.h)));
|
FixRatio(tmpnumer.h, tmpdenom.h)));
|
||||||
fprintf(stderr, "width = %d\n", gotwidth);
|
|
||||||
if (gotwidth == wantwidth)
|
if (gotwidth == wantwidth)
|
||||||
break;
|
break;
|
||||||
numer.h *= wantwidth;
|
numer.h *= wantwidth;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user