int wc_map_mode; /* specify map viewing options, mostly
* for backward compatibility */
int wc_player_selection; /* method of choosing character */
+#if defined(MSDOS)
+ unsigned wc_video_width; /* X resolution of screen */
+ unsigned wc_video_height; /* Y resolution of screen */
+#endif
boolean wc_splash_screen; /* display an opening splash screen or not */
boolean wc_popup_dialog; /* put queries in pop up dialogs instead of
* in the message window */
return retval;
}
#endif /* VIDEOSHADES */
-
#ifdef MSDOS
+ fullname = "video_width";
+ if (match_optname(opts, fullname, 7, TRUE)) {
+ if (duplicate)
+ complain_about_duplicate(opts, 1);
+ if (negated) {
+ bad_negation(fullname, FALSE);
+ return FALSE;
+ }
+ op = string_for_opt(opts, negated);
+ iflags.wc_video_width = strtol(op, NULL, 10);
+ return FALSE;
+ }
+ fullname = "video_height";
+ if (match_optname(opts, fullname, 7, TRUE)) {
+ if (duplicate)
+ complain_about_duplicate(opts, 1);
+ if (negated) {
+ bad_negation(fullname, FALSE);
+ return FALSE;
+ }
+ op = string_for_opt(opts, negated);
+ iflags.wc_video_height = strtol(op, NULL, 10);
+ return FALSE;
+ }
#ifdef NO_TERMS
/* video:string -- must be after longer tests */
fullname = "video";