diff options
author | Thomas White <taw@physics.org> | 2011-07-28 16:49:30 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:35 +0100 |
commit | bb4ae0b147097d3d13085fe717633d5bebb5e103 (patch) | |
tree | 6cff0e2959b8284319a311ee04aebe0ddf355339 /src | |
parent | 02c21d56cb61f8c56117e21dc8540183a53395e3 (diff) |
Scaling report tweaks
Diffstat (limited to 'src')
-rw-r--r-- | src/scaling-report.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scaling-report.c b/src/scaling-report.c index 0f395229..330b3af2 100644 --- a/src/scaling-report.c +++ b/src/scaling-report.c @@ -405,7 +405,7 @@ static void scale_factor_histogram(cairo_t *cr, const struct image *images, double osf = images[i].osf; if ( osf > osf_max ) osf_max = osf; } - osf_max = ceil(osf_max); + osf_max = ceil(osf_max+osf_max/10000.0); if ( osf_max > 1000.0 ) { ERROR("Silly scale factor detected. Using 100.0 instead.\n"); osf_max = 100.0; @@ -657,7 +657,7 @@ SRContext *sr_header(const char *filename, const char *stream_filename, sr->cr = cairo_create(sr->surf); - snprintf(tmp, 1023, "Scaling report: %s", stream_filename); + snprintf(tmp, 1023, "%s", stream_filename); show_text(sr->cr, tmp, 10.0, J_CENTER, "Sans Bold 16"); snprintf(tmp, 1023, "partialator %s", cmdline); show_text(sr->cr, tmp, 45.0, J_LEFT, "Mono 7"); |