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

Adjust threshold calculation

This commit is contained in:
Andrei Zavatski 2024-10-10 19:25:13 +03:00
parent bccd1c311b
commit 5d322a2fab

View File

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