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

Add explanatory comment

This commit is contained in:
Salman Ahmed 2021-08-21 15:18:03 +03:00
parent 318f830cd2
commit 1729d43cec

View File

@ -1018,6 +1018,8 @@ namespace osu.Game
var horizontalOffset = 0f; var horizontalOffset = 0f;
// Calculate the horizontal offset using Content, as it gets nested inside a ScalingMode.Everything container
// which should apply to overlays, but not get affected by modes like ScalingMode.ExcludeOverlays which shouldn't.
if (Settings.IsLoaded && Settings.IsPresent) if (Settings.IsLoaded && Settings.IsPresent)
horizontalOffset += Content.ToLocalSpace(Settings.ScreenSpaceDrawQuad.TopRight).X * SIDE_OVERLAY_OFFSET_RATIO; horizontalOffset += Content.ToLocalSpace(Settings.ScreenSpaceDrawQuad.TopRight).X * SIDE_OVERLAY_OFFSET_RATIO;
if (Notifications.IsLoaded && Notifications.IsPresent) if (Notifications.IsLoaded && Notifications.IsPresent)