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

Window BG not scaling correctly #53

Closed
Sebanisu opened this issue Apr 23, 2019 · 1 comment
Closed

Window BG not scaling correctly #53

Sebanisu opened this issue Apr 23, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@Sebanisu
Copy link
Collaborator

Sebanisu commented Apr 23, 2019

The larger windows will have thicker borders and extra stretched out background.

Smaller windows will have thin borders and extra squished out background.

wip
https://cdn.discordapp.com/attachments/552838120895283210/570316400732668027/unknown.png

@Sebanisu Sebanisu added the bug Something isn't working label Apr 23, 2019
@Sebanisu
Copy link
Collaborator Author

Sebanisu commented Apr 24, 2019

I forgot i had a scale value to set. if you leave scale to 0 it auto detects the scale. Once I set all the pieces to the same scale value. They all had the same size borders and bg. Then I needed to check for textures going out of the desired dst rectangle or not filling it.

Sebanisu@d48d023
end result
image

I did just see a small defect on the top right corner of one of the boxes. Might be a rounding error from converting from float to int without round. I'll check it out.

Found the problem and fixed it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant