This is an automated email from the git hooks/post-receive script.
git pushed a commit to reference refs/pull/12/head
in repository expedite.
View the commit online.
commit 1fcd2390c4b77cbf41ff3763c9e97bd11c364034
Author: Cedric Bail <[email protected]>
AuthorDate: Sun Nov 29 13:42:41 2026 -0600
expedite: reject unknown resolutions and fix hvga sizes
The resolution lookup loop stops at the NULL sentinel (N - 1), but the
not-found check compared against N, so it never fired. An unknown name
such as "1280p" silently selected the sentinel and opened a 0x0
window. Compare against N - 1, fix the "Unknow" typo and exit with an
error so scripts notice.
hvga and hvga-p had their sizes swapped: every other base entry is
landscape and its -p variant portrait. hvga is now 480x320 and hvga-p
320x480.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
src/bin/main.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/bin/main.c b/src/bin/main.c
index ea7d99d..1b8e0e9 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -1231,8 +1231,8 @@ static const Ecore_Getopt optdesc = {
static const Expedite_Resolution resolutions[] = {
{ "qvga", 320 , 240 },
{ "qvga-p", 240 , 320 },
- { "hvga", 320 , 480 },
- { "hvga-p", 480 , 320 },
+ { "hvga", 480 , 320 },
+ { "hvga-p", 320 , 480 },
{ "vga", 640 , 480 },
{ "vga-p", 480 , 640 },
{ "wvga", 800 , 480 },
@@ -1471,10 +1471,10 @@ main(int argc, char **argv)
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]))
+ if (i == sizeof(resolutions)/sizeof(resolutions[0]) - 1)
{
- fprintf(stderr, "Unknow resolution '%s'.\n", resolution);
- return 0;
+ fprintf(stderr, "Unknown resolution '%s'.\n", resolution);
+ return -1;
}
resolution_index = i;
profile = ""
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.