Skip to content

fix CENTER_CLAMPED background image layout and add CENTER_SCALED option #6458

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

Closed
wants to merge 3 commits into from

Conversation

smeagol74
Copy link
Contributor

Currently centered (CENTER_CLAMPED) layout option works only for backgrounds less than window size. This pull-request fixes that to work with any background image sizes. Also it adds one new background_image_layout option cscaled (CENTER_SCALED). This new option scales the background image to fill the window as scaled do but with proportions of initial background image and centering it in the view.

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.

1 participant