Skip to content
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

Correct calculation for fullscreen window #1519

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

felipeerias
Copy link
Contributor

@felipeerias felipeerias commented Aug 20, 2024

Fix an error in the calculation of the size of a fullscreen window, where we were using the current window size in DP instead of converting it to our 3D world dimensions.

Copy link
Member

@javifernandez javifernandez left a comment

Choose a reason for hiding this comment

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

The change looks good and fixes the issue.

mainAxisDefault = WidgetPlacement.floatDimension(getContext(), R.dimen.window_world_width);
mainAxisMinMax = Pair.create(minWorldSize.first, maxWorldSize.first);
} else {
// vertical orientation
mainAxisCurrent = getWindowHeight() - mBorderWidth * 2;
mainAxisCurrent = (getWindowHeight() - mBorderWidth * 2)* WidgetPlacement.worldToDpRatio(getContext());
Copy link
Member

Choose a reason for hiding this comment

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

Nit: add a space between ) and *

Fix an error in the calculation of the size of
a fullscreen window, where we were using the
current window size in DP instead of converting
it to our 3D world dimensions.
@felipeerias felipeerias force-pushed the felipeerias/correctFullscrSize branch from 743866a to 2a91b1f Compare August 21, 2024 14:00
@felipeerias felipeerias merged commit 29e61e4 into main Aug 21, 2024
22 checks passed
@felipeerias felipeerias deleted the felipeerias/correctFullscrSize branch August 21, 2024 14:17
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.

2 participants