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

Make the default text (video) mode "LCD 80x25" (42), square pixel 80x25 mode

This was the auto/default mode before commit c9cf87da

If you really want the VGA aspect ratio, use the '-v41' option.
parent a5c8fb73
No related branches found
No related tags found
No related merge requests found
Pipeline #5787 failed
...@@ -720,6 +720,7 @@ int main(int argc, char **argv) ...@@ -720,6 +720,7 @@ int main(int argc, char **argv)
struct robot saverobot; struct robot saverobot;
BOOL door_mode=FALSE; BOOL door_mode=FALSE;
int ciolib_mode=CIOLIB_MODE_AUTO; int ciolib_mode=CIOLIB_MODE_AUTO;
enum text_mode video_mode = LCD80X25;
unsigned int u; unsigned int u;
char sysop_aliases[256]; char sysop_aliases[256];
sbbsecho_cfg_t orig_cfg; sbbsecho_cfg_t orig_cfg;
...@@ -810,7 +811,7 @@ int main(int argc, char **argv) ...@@ -810,7 +811,7 @@ int main(int argc, char **argv)
uifc.mode|=UIFC_COLOR; uifc.mode|=UIFC_COLOR;
break; break;
case 'V': case 'V':
textmode(atoi(argv[i]+2)); video_mode = atoi(argv[i]+2);
break; break;
default: default:
USAGE: USAGE:
...@@ -842,8 +843,9 @@ int main(int argc, char **argv) ...@@ -842,8 +843,9 @@ int main(int argc, char **argv)
#endif #endif
" 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=auto)\n" "-v# set video mode to # (default=%u)\n"
"-l# set screen lines to # (default=auto-detect)\n" "-l# set screen lines to # (default=auto-detect)\n"
,video_mode
); );
#ifdef _WIN32 #ifdef _WIN32
printf("\nHit a key to close..."); printf("\nHit a key to close...");
...@@ -886,6 +888,7 @@ int main(int argc, char **argv) ...@@ -886,6 +888,7 @@ int main(int argc, char **argv)
printf("ciolib library init returned error %d\n",i); printf("ciolib library init returned error %d\n",i);
exit(1); exit(1);
} }
textmode(video_mode);
ciolib_settitle("Synchronet FidoNet Configuration"); ciolib_settitle("Synchronet FidoNet Configuration");
i=uifcini32(&uifc); /* curses/conio/X/ANSI */ i=uifcini32(&uifc); /* curses/conio/X/ANSI */
} }
......
...@@ -405,6 +405,7 @@ int main(int argc, char **argv) ...@@ -405,6 +405,7 @@ int main(int argc, char **argv)
bool door_mode=false; bool door_mode=false;
bool alt_chars = false; bool alt_chars = false;
int ciolib_mode=CIOLIB_MODE_AUTO; int ciolib_mode=CIOLIB_MODE_AUTO;
enum text_mode video_mode = LCD80X25;
#if defined(_WIN32) #if defined(_WIN32)
cio_api.options |= CONIO_OPT_DISABLE_CLOSE; cio_api.options |= CONIO_OPT_DISABLE_CLOSE;
...@@ -533,7 +534,7 @@ int main(int argc, char **argv) ...@@ -533,7 +534,7 @@ int main(int argc, char **argv)
alt_chars = true; alt_chars = true;
break; break;
case 'v': case 'v':
textmode(atoi(argv[i]+2)); video_mode = atoi(argv[i]+2);
break; break;
case 'y': case 'y':
auto_save=true; auto_save=true;
...@@ -582,9 +583,10 @@ int main(int argc, char **argv) ...@@ -582,9 +583,10 @@ 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"
"-A use alternate (ASCII) characters for arrow symbols\n" "-A use alternate (ASCII) characters for arrow symbols\n"
"-v# set video mode to # (default=auto)\n" "-v# set video mode to # (default=%u)\n"
"-l# set screen lines to # (default=auto-detect)\n" "-l# set screen lines to # (default=auto-detect)\n"
"-y automatically save changes (don't ask)\n" "-y automatically save changes (don't ask)\n"
,video_mode
); );
#ifdef _WIN32 #ifdef _WIN32
printf("\nHit a key to close..."); printf("\nHit a key to close...");
...@@ -679,6 +681,7 @@ int main(int argc, char **argv) ...@@ -679,6 +681,7 @@ int main(int argc, char **argv)
printf("ciolib library init returned error %d\n",i); printf("ciolib library init returned error %d\n",i);
exit(1); exit(1);
} }
textmode(video_mode);
ciolib_settitle("Synchronet Configuration"); ciolib_settitle("Synchronet Configuration");
i=uifcini32(&uifc); /* curses/conio/X/ANSI */ i=uifcini32(&uifc); /* curses/conio/X/ANSI */
if(alt_chars) { if(alt_chars) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment