mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Enforce composer aspect ratio to avoid depending on ambient window size
This commit is contained in:
@ -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
|
||||||
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user