From 6cc3d7fe4f1bd372ac466b4b6af95e5ea780a099 Mon Sep 17 00:00:00 2001 From: Daniel Power Date: Mon, 16 Dec 2024 23:17:22 -0330 Subject: [PATCH] Minor cleanup --- osu.Framework/Input/Handlers/Tablet/OpenTabletDriverHandler.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osu.Framework/Input/Handlers/Tablet/OpenTabletDriverHandler.cs b/osu.Framework/Input/Handlers/Tablet/OpenTabletDriverHandler.cs index bae2732816..c03e405a3a 100644 --- a/osu.Framework/Input/Handlers/Tablet/OpenTabletDriverHandler.cs +++ b/osu.Framework/Input/Handlers/Tablet/OpenTabletDriverHandler.cs @@ -137,7 +137,8 @@ private void updateOutputArea(IWindow window) { Vector2 windowSize = new Vector2(window.ClientSize.Width, window.ClientSize.Height); Vector2 scaledSize = windowSize * OutputAreaSize.Value; - Vector2 position = (windowSize / 2) + (windowSize * (OutputAreaPosition.Value - (Vector2.One / 2)) * (Vector2.One - OutputAreaSize.Value)); + Vector2 offset = windowSize * (OutputAreaPosition.Value - (new Vector2(0.5f))) * (Vector2.One - OutputAreaSize.Value); + Vector2 position = (windowSize / 2) + offset; absoluteOutputMode.Output = new Area {