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

LetterBox scaling #278

Open
edwinsyarief opened this issue Mar 16, 2021 · 1 comment
Open

LetterBox scaling #278

edwinsyarief opened this issue Mar 16, 2021 · 1 comment

Comments

@edwinsyarief
Copy link

Hi,

Is there any example when we want to resize windows, the game interface will resized and keep the aspect ratio?

for example:
Before resize
image

after resize
image

Thank you.
Best regards,
Edwin

@cebarks
Copy link
Collaborator

cebarks commented Jun 22, 2021

@edwinsyarief I think the best way to achieve this would be rendering to a canvas, and then when rendering that to the window scaled properly.

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

No branches or pull requests

3 participants