fix dpi awareness
All checks were successful
Build / Compute Version (push) Successful in 6s
Build / Build Nuget package (CringeBootstrap.Abstractions) (push) Successful in 54s
Build / Build Nuget package (NuGet) (push) Successful in 55s
Build / Build Nuget package (SharedCringe) (push) Successful in 1m0s
Build / Build Nuget package (CringePlugins) (push) Successful in 1m11s
Build / Build Launcher (push) Successful in 1m47s

This commit is contained in:
zznty
2025-06-02 01:15:07 +07:00
parent b12f1cc2f1
commit bfe01bde92

View File

@@ -112,7 +112,8 @@ public class Launcher : ICorePlugin
InitThreadPool();
MyVRage.Platform.System.OnThreadpoolInitialized();
InitRender();
Application.SetHighDpiMode(HighDpiMode.PerMonitorV2);
_renderComponent = new();
_renderComponent.Start(new(), () => InitEarlyWindow(splash), MyVideoSettingsManager.Initialize(), MyPerGameSettings.MaxFrameRate);
_renderComponent.RenderThread.BeforeDraw += MyFpsManager.Update;