pixel icon indicating copy to clipboard operation
pixel copied to clipboard

LetterBox scaling

Open edwinsyarief opened this issue 3 years ago • 1 comments

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

edwinsyarief avatar Mar 16 '21 09:03 edwinsyarief

@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.

cebarks avatar Jun 22 '21 18:06 cebarks