From 5d322a2fab9a7a019f7408523458c326f442fe00 Mon Sep 17 00:00:00 2001 From: Andrei Zavatski Date: Thu, 10 Oct 2024 19:25:13 +0300 Subject: [PATCH] Adjust threshold calculation --- osu.Game/Screens/Edit/Compose/Components/PositionSnapGrid.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osu.Game/Screens/Edit/Compose/Components/PositionSnapGrid.cs b/osu.Game/Screens/Edit/Compose/Components/PositionSnapGrid.cs index f9a93a2d5b..7e6c8b0f62 100644 --- a/osu.Game/Screens/Edit/Compose/Components/PositionSnapGrid.cs +++ b/osu.Game/Screens/Edit/Compose/Components/PositionSnapGrid.cs @@ -59,8 +59,8 @@ namespace osu.Game.Screens.Edit.Compose.Components { float fixedWidth = DrawWidth / ScreenSpaceDrawQuad.Width; // the width at which screen-space thickness will be 1px - // Resolution is low enough - if (fixedWidth > 0.4f) + // At 4k the grid (with 512px draw width) will be around 2167 pixels wide, let's use 2000px as a nice round value to increase thickness at. + if (ScreenSpaceDrawQuad.Width < 2000) return fixedWidth; return fixedWidth * 2f;