Interkarma / daggerfall-unity

Open source recreation of Daggerfall in the Unity engine
http://www.dfworkshop.net
MIT License
2.7k stars 327 forks source link

Fixed messagebox painting scaling issue. #2588

Closed John-Leitch closed 3 months ago

John-Leitch commented 6 months ago

This PR fixes the following bug: #2511 (Painting info window scales improperly with higher resolution images). The issue appears to be caused because the messagebox size is being calculated using the texture height, rather than the actual image panel height.

Before: image

After: image

KABoissonneault commented 6 months ago

Thank you again for contributing to an existing issue.

Change seems low risk, the image panel is only used by Paintings, and your change makes sense