hermet pushed a commit to branch master. http://git.enlightenment.org/tools/expedite.git/commit/?id=ae6cf1318be1d4fd7c2d8b5ee326ad27effece39
commit ae6cf1318be1d4fd7c2d8b5ee326ad27effece39 Author: Hermet Park <[email protected]> Date: Mon Dec 23 21:39:09 2019 +0900 compare list item count properly, and remove s9 resolution in the default list. --- src/bin/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/bin/main.c b/src/bin/main.c index a812348..ce5a178 100644 --- a/src/bin/main.c +++ b/src/bin/main.c @@ -1168,7 +1168,6 @@ static const Expedite_Resolution resolutions[] = { { "1080p-p", 1080, 1920}, { "wsvga", 1024, 600 }, { "wsvga-p", 600 , 1024}, - { "s9", 1600, 900 }, { NULL, 0, 0 } }; @@ -1305,7 +1304,7 @@ main(int argc, char **argv) unsigned int i; fprintf(stderr, "Known resolution :\n"); - for (i = 0; i < sizeof(resolutions)/sizeof(resolutions[0]); i++) + for (i = 0; i < sizeof(resolutions)/sizeof(resolutions[0]) - 1; i++) fprintf(stderr, " * %s\t%ix%i\n", resolutions[i].name, resolutions[i].width, resolutions[i].height); return 0; @@ -1315,7 +1314,7 @@ main(int argc, char **argv) { unsigned int i; - for (i = 0; i < sizeof(resolutions)/sizeof(resolutions[0]); i++) + for (i = 0; i < sizeof(resolutions)/sizeof(resolutions[0]) - 1; i++) if (!strcmp(resolutions[i].name, resolution)) break; if (i == sizeof(resolutions)/sizeof(resolutions[0])) --
