Commit 3031343 1 parent 0da318c commit 3031343 Copy full SHA for 3031343
File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -67,8 +67,13 @@ void Fast3dWindow::Init() {
67
67
posY = Ship::Context::GetInstance ()->GetConfig ()->GetInt (" Window.PositionY" , 100 );
68
68
69
69
if (isFullscreen) {
70
- width = Ship::Context::GetInstance ()->GetConfig ()->GetInt (" Window.Fullscreen.Width" , gameMode ? 1280 : 1920 );
71
- height = Ship::Context::GetInstance ()->GetConfig ()->GetInt (" Window.Fullscreen.Height" , gameMode ? 800 : 1080 );
70
+ if (gameMode) {
71
+ width = 1280 ;
72
+ height = 800 ;
73
+ } else {
74
+ width = Ship::Context::GetInstance ()->GetConfig ()->GetInt (" Window.Fullscreen.Width" , 1920 );
75
+ height = Ship::Context::GetInstance ()->GetConfig ()->GetInt (" Window.Fullscreen.Height" , 1080 );
76
+ }
72
77
} else {
73
78
width = Ship::Context::GetInstance ()->GetConfig ()->GetInt (" Window.Width" , 640 );
74
79
height = Ship::Context::GetInstance ()->GetConfig ()->GetInt (" Window.Height" , 480 );
You can’t perform that action at this time.
0 commit comments