diff --git a/Packages/com.unity.inputsystem/CHANGELOG.md b/Packages/com.unity.inputsystem/CHANGELOG.md index 00c6ca33ca..3cde95ec9e 100644 --- a/Packages/com.unity.inputsystem/CHANGELOG.md +++ b/Packages/com.unity.inputsystem/CHANGELOG.md @@ -23,6 +23,7 @@ however, it has to be formatted properly to pass verification tests. - Fixed pasting into an empty map list raising an exception. [ISXB-1150](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1150) - Fixed pasting bindings into empty Input Action asset. [ISXB-1180](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1180) - Fixed missing '&' symbol in Control Scheme dropdown on Windows platform. [ISXB-1109](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1109) +- Fixed icon scaling in Input Actions window. ### Changed - Added back the InputManager to InputSystem project-wide asset migration code with performance improvement (ISX-2086). diff --git a/Packages/com.unity.inputsystem/InputSystem/Editor/Internal/GUIHelpers.cs b/Packages/com.unity.inputsystem/InputSystem/Editor/Internal/GUIHelpers.cs index 18bd7a5055..a2d374ad0c 100644 --- a/Packages/com.unity.inputsystem/InputSystem/Editor/Internal/GUIHelpers.cs +++ b/Packages/com.unity.inputsystem/InputSystem/Editor/Internal/GUIHelpers.cs @@ -43,7 +43,7 @@ public static void DrawLineSeparator(string label = null) public static Texture2D LoadIcon(string name) { var skinPrefix = EditorGUIUtility.isProSkin ? "d_" : ""; - var scale = Mathf.Clamp((int)EditorGUIUtility.pixelsPerPoint, 0, 4); + var scale = Mathf.Clamp(Mathf.CeilToInt(EditorGUIUtility.pixelsPerPoint), 0, 4); var scalePostFix = scale > 1 ? $"@{scale}x" : ""; if (name.IndexOfAny(Path.GetInvalidFileNameChars()) > -1) name = string.Join("_", name.Split(Path.GetInvalidFileNameChars()));