- set resolution selector to auto detected resolution at startup, remove the entries from the config file
- committing a change for fullscreen sets scaling to 1.0 to guarantee the selected number of pixels are actually used
This commit is contained in:
parent
057b746e58
commit
45d94ee993
2 changed files with 9 additions and 2 deletions
|
|
@ -39,8 +39,8 @@
|
|||
#include "v_video.h"
|
||||
#include "menu/menu.h"
|
||||
|
||||
CVAR(Int, menu_resolution_custom_width, 640, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
|
||||
CVAR(Int, menu_resolution_custom_height, 480, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
|
||||
CVAR(Int, menu_resolution_custom_width, 640, 0)
|
||||
CVAR(Int, menu_resolution_custom_height, 480, 0)
|
||||
|
||||
EXTERN_CVAR(Bool, fullscreen)
|
||||
EXTERN_CVAR(Bool, win_maximized)
|
||||
|
|
@ -84,6 +84,7 @@ CCMD (menu_resolution_commit_changes)
|
|||
{
|
||||
fullscreen = true;
|
||||
vid_scalemode = 5;
|
||||
vid_scalefactor = 1.;
|
||||
vid_scale_customwidth = menu_resolution_custom_width;
|
||||
vid_scale_customheight = menu_resolution_custom_height;
|
||||
vid_scale_customstretched = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue