From 5497a8dbcd5ef850682217f80afa17b6c9ae0fec Mon Sep 17 00:00:00 2001 From: zueuk Date: Mon, 12 Sep 2005 14:30:15 +0000 Subject: [PATCH] increased (a bit) precicion of zoom, angle, etc. in SaveToString --- 2.10/Source/ControlPoint.pas | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/2.10/Source/ControlPoint.pas b/2.10/Source/ControlPoint.pas index 9524026..16e16ab 100644 --- a/2.10/Source/ControlPoint.pas +++ b/2.10/Source/ControlPoint.pas @@ -1440,9 +1440,9 @@ begin sl.add(format('time %f', [time])); if cmapindex >= 0 then sl.add(format('cmap %d', [cmapindex])); - sl.add(format('zoom %f', [zoom])); // mt - sl.add(format('angle %f', [FAngle])); - sl.add(format('image_size %d %d center %f %f pixels_per_unit %f', + sl.add(format('zoom %.3f', [zoom])); // mt + sl.add(format('angle %.3f', [FAngle])); + sl.add(format('image_size %d %d center %.3f %.3f pixels_per_unit %f', [Width, Height, center[0], center[1], pixels_per_unit])); sl.add(format('spatial_oversample %d spatial_filter_radius %f', [spatial_oversample, spatial_filter_radius])); @@ -1457,7 +1457,7 @@ begin if xform[i].density = 0 then Continue; - sl.add(format('xform %d density %.3f color %f symmetry %f', [i, xform[i].density, xform[i].color, xform[i].symmetry])); + sl.add(format('xform %d density %.3f color %.3f symmetry %f', [i, xform[i].density, xform[i].color, xform[i].symmetry])); s := 'var'; for j := 0 to NRVAR - 1 do begin s := format('%s %.3f', [s, xform[i].vars[j]]);