Skip to content

Commit 3031343

Browse files
committed
the config had wild big numbers for these, trying to just not grab them from the config
1 parent 0da318c commit 3031343

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/graphic/Fast3D/Fast3dWindow.cpp

+7-2
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,13 @@ void Fast3dWindow::Init() {
6767
posY = Ship::Context::GetInstance()->GetConfig()->GetInt("Window.PositionY", 100);
6868

6969
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+
}
7277
} else {
7378
width = Ship::Context::GetInstance()->GetConfig()->GetInt("Window.Width", 640);
7479
height = Ship::Context::GetInstance()->GetConfig()->GetInt("Window.Height", 480);

0 commit comments

Comments
 (0)