Skip to content
Snippets Groups Projects
Commit 88b95ab1 authored by deuce's avatar deuce
Browse files

Use return() from main() rather than exit(0)... allows SDL to close

gracefully on some platforms.
parent c7eb086b
No related branches found
No related tags found
No related merge requests found
......@@ -393,6 +393,5 @@ exitprg(void)
clrscr();
gotoxy(1, 1);
printf("Thanx 4 using this syncdraw\n");
exit(0);
}
}
......@@ -1152,6 +1152,7 @@ main(int argnum, char *args[])
break;
case 0x2d00: /* ALT+X - Exit */
exitprg();
return(0);
break;
case 0x1e00: /* ALT+A - Color */
Attribute = SelectColor();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment