mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-21 11:21:52 +00:00
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:
parent
911d225496
commit
86fd714788
1 changed files with 9 additions and 2 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue