cedric pushed a commit to branch master.

http://git.enlightenment.org/tools/expedite.git/commit/?id=01ff7df1f2e39a50b6a949cd341517bdadcead7b

commit 01ff7df1f2e39a50b6a949cd341517bdadcead7b
Author: Cedric Bail <[email protected]>
Date:   Fri Feb 28 13:05:11 2014 -0300

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

-- 


Reply via email to