-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allows LUS to set the screen dimensions programmatically. #785
base: main
Are you sure you want to change the base?
Conversation
@@ -62,13 +62,13 @@ void Fast3dWindow::Init() { | |||
uint32_t width, height; | |||
int32_t posX, posY; | |||
|
|||
isFullscreen = Ship::Context::GetInstance()->GetConfig()->GetBool("Window.Fullscreen.Enabled", false) || gameMode; | |||
isFullscreen = Ship::Context::GetInstance()->GetConfig()->GetBool("Window.Fullscreen.Enabled", 0) || gameMode; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the plan to standardize on 0
instead of false
for GetBool
?
posX = Ship::Context::GetInstance()->GetConfig()->GetInt("Window.PositionX", 100); | ||
posY = Ship::Context::GetInstance()->GetConfig()->GetInt("Window.PositionY", 100); | ||
|
||
if (isFullscreen) { | ||
width = Ship::Context::GetInstance()->GetConfig()->GetInt("Window.Fullscreen.Width", gameMode ? 1280 : 1920); | ||
height = Ship::Context::GetInstance()->GetConfig()->GetInt("Window.Fullscreen.Height", gameMode ? 800 : 1080); | ||
width = Ship::Context::GetInstance()->GetConfig()->GetInt("Window.Fullscreen.Width", 1920); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to test this in gamescope. i still don't like that we have resolution tied to gamescope, just because someone is using gamescope doesn't mean they're on a steam deck, but seeing what breaks and if we have ways around it with the other changes in this PR will be good
edit: looks like we're looking for steamdeck
in the release variant id so it's not just gamescope we're checking for, but still feels a bit tacked on
No description provided.