Add immediate game viewport sync after aspect ratio change in Editor

This commit is contained in:
Wojtek Figat
2023-11-21 12:34:31 +01:00
parent d01990e3bb
commit eba4b9bcc1

View File

@@ -386,6 +386,7 @@ namespace FlaxEditor.Windows
{
_viewport.Bounds = new Rectangle(Width * (1 - scaleWidth) / 2, 0, Width * scaleWidth, Height);
}
_viewport.SyncBackbufferSize();
PerformLayout();
}