forked from len0rd/rockbox
using --zoom with no number given defaults to 2 and no longer segfaults
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8771 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3945218810
commit
18e097c8ff
1 changed files with 4 additions and 1 deletions
|
|
@ -203,7 +203,10 @@ int main(int argc, char *argv[])
|
|||
printf("Using old LCD layout.\n");
|
||||
} else if (!strcmp("--zoom", argv[x])) {
|
||||
x++;
|
||||
display_zoom=atoi(argv[x]);
|
||||
if(x < argc)
|
||||
display_zoom=atoi(argv[x]);
|
||||
else
|
||||
display_zoom = 2;
|
||||
printf("Window zoom is %d\n", display_zoom);
|
||||
} else {
|
||||
printf("rockboxui\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue