From e9abd7fe22df1d6452b8a3cade8cd18d837daa8e Mon Sep 17 00:00:00 2001 From: Albert Cahalan Date: Wed, 29 Dec 2004 19:08:01 +0000 Subject: [PATCH] 448x376 is the original canvas size --- src/tuxpaint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index a9bdd90d4..4f8f99f4f 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -5394,7 +5394,7 @@ static void show_usage(FILE * f, char * prg) } -// The original Tux Paint canvas was 608x472. The canvas can be +// The original Tux Paint canvas was 448x376. The canvas can be // other sizes now, but many old stamps are sized for the small // canvas. So, with larger canvases, we must choose a good scale // factor to compensate. As the canvas size grows, the user will @@ -5402,7 +5402,7 @@ static void show_usage(FILE * f, char * prg) // getting tiny". This will calculate the needed scale factor. static unsigned compute_default_scale_factor(double ratio) { - double old_diag = sqrt(608*608+472*472); + double old_diag = sqrt(448*448+376*376); double new_diag = sqrt(canvas->w*canvas->w+canvas->h*canvas->h); double good_def = ratio*sqrt(new_diag/old_diag); double good_log = log(good_def);