Skip to content

Conversation

@krafczyk
Copy link
Contributor

@krafczyk krafczyk commented Feb 6, 2026

Fixes #9654

  • When the user doesn't pass 'portrait', 'landscape', or 'height/width', fall back to the original behavior auto detecting monitor orientation.
  • Use monitor aspect ratio to inform width/height when only one is set via command line.
  • Add helper method to signal to Forge that the user is overriding the default orientation.
  • More comprehensive height/width logic

* When the user doesn't pass 'portrait', 'landscape', or 'height/width',
  fall back to the original behavior auto detecting monitor orientation.
* Use monitor aspect ratio to inform width/height when only one is set
  via command line.
* Add helper method to signal to Forge that the user is overriding the
  default orientation.
boolean hasAnyDimArg = (widthArg != null || heightArg != null);
boolean hasBothDims = (widthArg != null && heightArg != null);

boolean manualWindowSize = hasAnyDimArg;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should clean up some of these booleans
these command line arguments don't really need their own ones if you're just going to reassign them to another anyway
just makes things messier

}
}
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imo if the size from settings is used it shouldn't be messed with
or at the very least only if the orientation arguments are actually provided
otherwise you're making it more difficult to freely combine both parts in case the screen size is big enough for either mode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Portrait mode UI not working in most recent nightly snapshots (2.0.10) desktop version.

2 participants