-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[Merged by Bors] - Make ScalingMode more flexible #3253
Conversation
How are these new fields different to the That being said, the |
These fields are there because |
Add additional fields to existing modes and add an additional Auto mode
Right now, in this pull request there is |
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.
I like the addition of Auto quite a bit.
However I don't like the addition of an additional way to scale the window viewport. Can you strip down this PR?
What about the parameters in |
Hmm. I personally think we should keep those; I can see the appeal there. |
Apparently, right now |
Excellent, I'm happy with this now. |
@Daniikk1012 can you resolve the comment threads that you've addressed? It makes it much easier to follow for future reviewers. |
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.
I'd like to approve these changes. It improves on what we had previously, in multiple ways. I feel this PR is in a good shape now.
Any additional fixes/improvements/nitpicks can always come via additional PRs, of course. :)
bors r+ |
@Daniikk1012 can you please rebase this so it can be merged? |
bors r+ |
Merge conflict. |
bors r+ |
Merge conflict. |
Apparently more merge conflicts. You have my sympathies @Daniikk1012... Thanks for your patience through all this. |
Sorry, I still do not understand how to work with git properly (My first time resolving a merge conflict). This should work now |
Git can be a bit of a pain; it's not just you :) This looks good now, thanks! bors r+ |
Adds ability to specify scaling factor for `WindowSize`, size of the fixed axis for `FixedVertical` and `FixedHorizontal` and a new `ScalingMode` that is a mix of `FixedVertical` and `FixedHorizontal` # The issue Currently, only available options are to: * Have one of the axes fixed to value 1 * Have viewport size match the window size * Manually adjust viewport size In most of the games these options are not enough and more advanced scaling methods have to be used ## Solution The solution is to provide additional parameters to current scaling modes, like scaling factor for `WindowSize`. Additionally, a more advanced `Auto` mode is added, which dynamically switches between behaving like `FixedVertical` and `FixedHorizontal` depending on the window's aspect ratio. Co-authored-by: Daniikk1012 <49123959+Daniikk1012@users.noreply.github.com>
Adds ability to specify scaling factor for `WindowSize`, size of the fixed axis for `FixedVertical` and `FixedHorizontal` and a new `ScalingMode` that is a mix of `FixedVertical` and `FixedHorizontal` # The issue Currently, only available options are to: * Have one of the axes fixed to value 1 * Have viewport size match the window size * Manually adjust viewport size In most of the games these options are not enough and more advanced scaling methods have to be used ## Solution The solution is to provide additional parameters to current scaling modes, like scaling factor for `WindowSize`. Additionally, a more advanced `Auto` mode is added, which dynamically switches between behaving like `FixedVertical` and `FixedHorizontal` depending on the window's aspect ratio. Co-authored-by: Daniikk1012 <49123959+Daniikk1012@users.noreply.github.com>
Adds ability to specify scaling factor for `WindowSize`, size of the fixed axis for `FixedVertical` and `FixedHorizontal` and a new `ScalingMode` that is a mix of `FixedVertical` and `FixedHorizontal` # The issue Currently, only available options are to: * Have one of the axes fixed to value 1 * Have viewport size match the window size * Manually adjust viewport size In most of the games these options are not enough and more advanced scaling methods have to be used ## Solution The solution is to provide additional parameters to current scaling modes, like scaling factor for `WindowSize`. Additionally, a more advanced `Auto` mode is added, which dynamically switches between behaving like `FixedVertical` and `FixedHorizontal` depending on the window's aspect ratio. Co-authored-by: Daniikk1012 <49123959+Daniikk1012@users.noreply.github.com>
Adds ability to specify scaling factor for
WindowSize
, size of the fixed axis forFixedVertical
andFixedHorizontal
and a newScalingMode
that is a mix ofFixedVertical
andFixedHorizontal
The issue
Currently, only available options are to:
In most of the games these options are not enough and more advanced scaling methods have to be used
Solution
The solution is to provide additional parameters to current scaling modes, like scaling factor for
WindowSize
. Additionally, a more advancedAuto
mode is added, which dynamically switches between behaving likeFixedVertical
andFixedHorizontal
depending on the window's aspect ratio.