edo9300 / edopro

A script engine for "yu-gi-oh!" and sample gui (former "ygopro")
Other
279 stars 75 forks source link

Prevent the card display from appearing stretched #243

Closed Larikk closed 2 years ago

Larikk commented 2 years ago

If the window is overproportionally wide the card display appears stretched. This change caps the width so that the card maintains its aspect ratio in this situations.

This is a subset of #237 . The buttons next to the card image are not modified here and the image appears squished horizontally instead of being scaled down when the windows width is underproportional.