mirror of
https://github.com/ppy/osu
synced 2024-12-29 10:22:43 +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 = 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