1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 16:32:54 +08:00

Fix incorrect height limit

This commit is contained in:
Andrei Zavatski 2023-10-22 00:33:26 +03:00
parent 71718bd761
commit e1e9c3d7b3

View File

@ -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;
}