Skip to content
Snippets Groups Projects
Commit b1ce58ad authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Add -s option to set window scaling factor (e.g. 1.5 to set 50% bigger)

This is an attempt to make Nelgin happy (issue #749) without writing/reading
an additional settings file.
parent a40b6402
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
Pipeline #6385 passed
...@@ -814,6 +814,9 @@ int main(int argc, char **argv) ...@@ -814,6 +814,9 @@ int main(int argc, char **argv)
case 'V': case 'V':
video_mode = atoi(argv[i]+2); video_mode = atoi(argv[i]+2);
break; break;
case 'S':
ciolib_initial_scaling = strtod(argv[i]+2, NULL);
break;
default: default:
USAGE: USAGE:
#ifdef _WIN32 #ifdef _WIN32
...@@ -845,7 +848,8 @@ int main(int argc, char **argv) ...@@ -845,7 +848,8 @@ int main(int argc, char **argv)
" A = ANSI mode\n" " A = ANSI mode\n"
" D = standard input/output/door mode\n" " D = standard input/output/door mode\n"
"-v# set video mode to # (default=%u)\n" "-v# set video mode to # (default=%u)\n"
"-l# set screen lines to # (default=auto-detect)\n" "-l# set window lines to # (default=auto-detect)\n"
"-s# set window scaling factor to # (default=1.0)\n"
,video_mode ,video_mode
); );
#ifdef _WIN32 #ifdef _WIN32
......
...@@ -537,6 +537,9 @@ int main(int argc, char **argv) ...@@ -537,6 +537,9 @@ int main(int argc, char **argv)
case 'v': case 'v':
video_mode = atoi(argv[i]+2); video_mode = atoi(argv[i]+2);
break; break;
case 's':
ciolib_initial_scaling = strtod(argv[i]+2, NULL);
break;
case 'y': case 'y':
auto_save=true; auto_save=true;
break; break;
...@@ -585,7 +588,8 @@ int main(int argc, char **argv) ...@@ -585,7 +588,8 @@ int main(int argc, char **argv)
" D = standard input/output/door mode\n" " D = standard input/output/door mode\n"
"-A use alternate (ASCII) characters for arrow symbols\n" "-A use alternate (ASCII) characters for arrow symbols\n"
"-v# set video mode to # (default=%u)\n" "-v# set video mode to # (default=%u)\n"
"-l# set screen lines to # (default=auto-detect)\n" "-l# set window lines to # (default=auto-detect)\n"
"-s# set window scaling factor to # (default=1.0)\n"
"-y automatically save changes (don't ask)\n" "-y automatically save changes (don't ask)\n"
,video_mode ,video_mode
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment