Allow to choose the fullscreen mode through the menu.

There're 3 possible values:
* no -> vid_fullsceen == 0
* keep resolution -> vid_fullscreen == 1
* switch_resolution -> vid_fullscreen == 2
This commit is contained in:
Yamagi Burmeister 2017-08-01 18:32:44 +02:00
parent 911d225496
commit 86fd714788

View file

@ -337,6 +337,13 @@ VID_MenuInit(void)
0
};
static const char *fullscreen_names[] = {
"no",
"keep resolution",
"switch resolution",
0
};
static const char *pow2_names[] = {
"off",
"2x",
@ -499,8 +506,8 @@ VID_MenuInit(void)
s_fs_box.generic.name = "fullscreen";
s_fs_box.generic.x = 0;
s_fs_box.generic.y = (y += 10);
s_fs_box.itemnames = yesno_names;
s_fs_box.curvalue = (vid_fullscreen->value != 0);
s_fs_box.itemnames = fullscreen_names;
s_fs_box.curvalue = (int)vid_fullscreen->value;
s_vsync_list.generic.type = MTYPE_SPINCONTROL;
s_vsync_list.generic.name = "vertical sync";