expedite: report the resolution size in pixels in help.

This commit is contained in:
Cedric Bail 2014-02-28 13:05:11 -03:00
parent 21d03f8a61
commit 01ff7df1f2
1 changed files with 4 additions and 2 deletions

View File

@ -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);
}