Skip to content

Commit

Permalink
reenable fullscreen by default for MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Bishop-333 committed Sep 2, 2024
1 parent e0c5d0f commit 4adf1a3
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions code/client/cl_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3799,11 +3799,7 @@ static void CL_InitGLimp_Cvars( void )
// shared with GLimp
r_allowSoftwareGL = Cvar_Get( "r_allowSoftwareGL", "0", CVAR_LATCH );
Cvar_SetDescription( r_allowSoftwareGL, "Toggle the use of the default software OpenGL driver supplied by the Operating System." );
#ifdef MACOS_X
r_allowResize = Cvar_Get( "r_allowResize", "1", CVAR_LATCH );
#else
r_allowResize = Cvar_Get( "r_allowResize", "0", CVAR_LATCH );
#endif
r_swapInterval = Cvar_Get( "r_swapInterval", "0", CVAR_ARCHIVE_ND );
Cvar_SetDescription( r_swapInterval, "V-blanks to wait before swapping buffers.\n 0: No V-Sync\n 1: Synced to the monitor's refresh rate." );
r_glDriver = Cvar_Get( "r_glDriver", OPENGL_DRIVER_NAME, CVAR_ARCHIVE_ND | CVAR_LATCH );
Expand All @@ -3829,13 +3825,7 @@ static void CL_InitGLimp_Cvars( void )
Cvar_SetDescription( r_mode, "Set video mode:\n -2 - use current desktop resolution\n -1 - use \\r_customWidth and \\r_customHeight\n 0..N - enter \\modelist for details" );
r_modeFullscreen = Cvar_Get( "r_modeFullscreen", "", CVAR_ARCHIVE | CVAR_LATCH );
Cvar_SetDescription( r_modeFullscreen, "Dedicated fullscreen mode, set to \"\" to use \\r_mode in all cases." );

#ifdef MACOS_X
// Mac OS X fullscreen is buggy and doesn't support "ALT+TAB", r_allowResize is preferable
r_fullscreen = Cvar_Get( "r_fullscreen", "0", CVAR_ARCHIVE | CVAR_LATCH );
#else
r_fullscreen = Cvar_Get( "r_fullscreen", "1", CVAR_ARCHIVE | CVAR_LATCH );
#endif
Cvar_SetDescription( r_fullscreen, "Fullscreen mode. Set to 0 for windowed mode." );
r_customPixelAspect = Cvar_Get( "r_customPixelAspect", "1", CVAR_ARCHIVE_ND | CVAR_LATCH );
Cvar_SetDescription( r_customPixelAspect, "Enables custom aspect of the screen, with \\r_mode -1." );
Expand Down

0 comments on commit 4adf1a3

Please sign in to comment.