We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 343e8bf commit 0024956Copy full SHA for 0024956
Packages/com.unity.inputsystem/InputSystem/Editor/Internal/GUIHelpers.cs
@@ -43,7 +43,7 @@ public static void DrawLineSeparator(string label = null)
43
public static Texture2D LoadIcon(string name)
44
{
45
var skinPrefix = EditorGUIUtility.isProSkin ? "d_" : "";
46
- var scale = Mathf.Clamp((int)EditorGUIUtility.pixelsPerPoint, 0, 4);
+ var scale = Mathf.Clamp(Mathf.CeilToInt(EditorGUIUtility.pixelsPerPoint), 0, 4);
47
var scalePostFix = scale > 1 ? $"@{scale}x" : "";
48
if (name.IndexOfAny(Path.GetInvalidFileNameChars()) > -1)
49
name = string.Join("_", name.Split(Path.GetInvalidFileNameChars()));
0 commit comments