public static void UpdateScreenSize() { ForwardViewport = MyMinerGame.Static.GraphicsDevice.Viewport; BackwardViewport = MyGuiManager.GetBackwardViewport(); HudViewport = MyGuiManager.GetHudViewport(); FullscreenHudViewport = MyGuiManager.GetFullscreenHudViewport(); PreviousPosition = Vector3.Zero; BoundingFrustum = new BoundingFrustum(Matrix.Identity); ForwardAspectRatio = (float)ForwardViewport.Width / (float)ForwardViewport.Height; if (MyGuiManager.GetScreenshot() != null) { ForwardViewport = ScaleViewport(ForwardViewport, MyGuiManager.GetScreenshot().SizeMultiplier); BackwardViewport = ScaleViewport(BackwardViewport, MyGuiManager.GetScreenshot().SizeMultiplier); HudViewport.Y = (int)(HudViewport.Y * MyGuiManager.GetScreenshot().SizeMultiplier); HudViewport.Height = (int)(HudViewport.Height * MyGuiManager.GetScreenshot().SizeMultiplier); FullscreenHudViewport = ScaleViewport(FullscreenHudViewport, MyGuiManager.GetScreenshot().SizeMultiplier); } }