freeserf.net icon indicating copy to clipboard operation
freeserf.net copied to clipboard

Minor fullscreen issue

Open athach opened this issue 2 years ago • 1 comments

Hi, When you exit while in full screen, on the next start the game is not centered on the screen and if you exit full screen there is not title bar. I am using Window 10 in 1920x1080.

athach avatar Feb 13 '22 17:02 athach

This is the code, could the transition to fullscreen be delayed to some other function? Could updating Silk.NET solve the problem? private void MainWindow_Load() { try { gameView = new GameView(dataSource, new Size(initInfo.ScreenWidth, initInfo.ScreenHeight), DeviceType.Desktop, SizingPolicy.FitRatio, OrientationPolicy.Fixed); gameView.FullscreenRequestHandler = FullscreenRequestHandler; gameView.Resize(Width, Height);

            if (initInfo.Fullscreen == true)
                SetFullscreen(true);

athach avatar Dec 13 '22 18:12 athach