File tree Expand file tree Collapse file tree 1 file changed +8
-21
lines changed Expand file tree Collapse file tree 1 file changed +8
-21
lines changed Original file line number Diff line number Diff line change @@ -793,31 +793,17 @@ int main(int argc, char *argv[])
793
793
CON (" INI: Load game config" );
794
794
game = new Game (std::string (appdata));
795
795
game->load_config ();
796
- #if 0
797
- game->save_config();
798
- int x = 1;
799
- if (x) {
800
- exit(0);
801
- }
802
- #endif
803
796
804
797
if (! sdl_init ()) {
805
798
ERR (" SDL: Init" );
806
799
}
807
800
808
- game->config .gfx_vsync_locked = SDL_GL_GetSwapInterval ();
809
-
810
- if (! game->config .gfx_vsync_locked ) {
811
- SDL_GL_SetAttribute (SDL_GL_DOUBLEBUFFER, 1 );
812
- GL_ERROR_CHECK ();
813
-
814
- if (game->config .gfx_vsync_enable ) {
815
- SDL_GL_SetSwapInterval (1 );
816
- } else {
817
- SDL_GL_SetSwapInterval (0 );
818
- }
819
- GL_ERROR_CHECK ();
820
- }
801
+ //
802
+ // For some reason this is needed on windows to force the console
803
+ // to appear.
804
+ //
805
+ auto save_gfx_vsync_locked = game->config .gfx_vsync_locked ;
806
+ game->config .gfx_vsync_locked = 1 ;
821
807
822
808
//
823
809
// Check for overrides.
@@ -1024,8 +1010,9 @@ int main(int argc, char *argv[])
1024
1010
1025
1011
loop:
1026
1012
1027
- wid_toggle_hidden (wid_console_window);
1013
+ wid_hide (wid_console_window);
1028
1014
1015
+ game->config .gfx_vsync_locked = save_gfx_vsync_locked;
1029
1016
config_gfx_vsync_update ();
1030
1017
pcg_random_allowed--;
1031
1018
You can’t perform that action at this time.
0 commit comments