opt.dbginfo = 1;
} else if(strcmp(argv[i], "-nodbg") == 0) {
opt.dbginfo = 0;
+#ifndef MSDOS
+ } else if(strcmp(argv[i], "-fs") == 0) {
+ opt.fullscreen = 1;
+ } else if(strcmp(argv[i], "-win") == 0) {
+ opt.fullscreen = 0;
+ } else if(strcmp(argv[i], "-scaler-nearest") == 0) {
+ opt.scaler = SCALER_NEAREST;
+ } else if(strcmp(argv[i], "-scaler-linear") == 0) {
+ opt.scaler = SCALER_LINEAR;
+#endif
} else {
fprintf(stderr, "invalid option: %s\n", argv[i]);
return -1;
opt.vsync = bool_value(value);
} else if(strcmp(line, "debug") == 0) {
opt.dbginfo = bool_value(value);
+#ifndef MSDOS
+ } else if(strcmp(line, "fullscreen") == 0) {
+ opt.fullscreen = bool_value(value);
+ } else if(strcmp(line, "scaler") == 0) {
+ if(strcmp(value, "linear") == 0) {
+ opt.scaler = SCALER_LINEAR;
+ } else {
+ opt.scaler = SCALER_NEAREST;
+ }
+#endif
} else {
fprintf(stderr, "%s:%d invalid option: %s\n", fname, nline, line);
return -1;