mirror of
https://github.com/ppy/osu
synced 2025-01-01 03:42:19 +00:00
Enforce composer aspect ratio to avoid depending on ambient window size
This commit is contained in:
parent
f899c3e68f
commit
a759e641eb
@ -71,6 +71,11 @@ namespace osu.Game.Tests.Visual.Editing
|
|||||||
Child = editorBeatmapContainer = new EditorBeatmapContainer(Beatmap.Value)
|
Child = editorBeatmapContainer = new EditorBeatmapContainer(Beatmap.Value)
|
||||||
{
|
{
|
||||||
Child = hitObjectComposer = new OsuHitObjectComposer(new OsuRuleset())
|
Child = hitObjectComposer = new OsuHitObjectComposer(new OsuRuleset())
|
||||||
|
{
|
||||||
|
// force the composer to fully overlap the playfield area by setting a 4:3 aspect ratio.
|
||||||
|
FillMode = FillMode.Fit,
|
||||||
|
FillAspectRatio = 4 / 3f
|
||||||
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user