1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 01:22:59 +08:00

Fix video playback is stretched on client resize

This commit is contained in:
Andrei Zavatski 2019-09-14 06:05:09 +03:00
parent ac6fffd834
commit 9a94405b3a

View File

@ -59,8 +59,12 @@ namespace osu.Game.Screens.Play
RelativeSizeAxes = Axes.Both;
Masking = true;
AddInternal(video);
video.RelativeSizeAxes = Axes.Both;
video.FillMode = FillMode.Fill;
video.Anchor = Anchor.Centre;
video.Origin = Anchor.Centre;
AddInternal(video);
}
[BackgroundDependencyLoader]