mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 14:12:56 +08:00
Fix incorrect height limit
This commit is contained in:
parent
71718bd761
commit
e1e9c3d7b3
@ -102,7 +102,7 @@ namespace osu.Game.Overlays.Comments
|
||||
Texture t = base.GetImageTexture(textures, url);
|
||||
|
||||
if (t != null)
|
||||
Size = t.Height > 96 ? new Vector2(max_height / t.Height * t.Width, max_height) : t.Size;
|
||||
Size = t.Height > max_height ? new Vector2(max_height / t.Height * t.Width, max_height) : t.Size;
|
||||
|
||||
return t;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user