From 01ff7df1f2e39a50b6a949cd341517bdadcead7b Mon Sep 17 00:00:00 2001 From: Cedric Bail Date: Fri, 28 Feb 2014 13:05:11 -0300 Subject: [PATCH] expedite: report the resolution size in pixels in help. --- src/bin/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bin/main.c b/src/bin/main.c index 28753bd..dc8b6a8 100644 --- a/src/bin/main.c +++ b/src/bin/main.c @@ -1253,9 +1253,11 @@ _help(void) "Where PROFILE can be one of:\n"); for (i = 0; resolutions[i].name; ++i) - fprintf(stderr, " %s", resolutions[i].name); + if (strlen(resolutions[i].name) >= 7) + fprintf(stderr, " %s [ %i x %i ]\n", resolutions[i].name, resolutions[i].width, resolutions[i].height); + else + fprintf(stderr, " %s\t [ %i x %i ]\n", resolutions[i].name, resolutions[i].width, resolutions[i].height); - fprintf(stderr, "\n"); exit(-1); }