From f17c6db590ffec1d70e7269538a816e7ff4580cb Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Wed, 17 Mar 2021 12:40:36 -0700 Subject: [PATCH] note SetWindowSize --- content/Window/_index.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/Window/_index.md b/content/Window/_index.md index ce517d9..ab90bfc 100644 --- a/content/Window/_index.md +++ b/content/Window/_index.md @@ -19,4 +19,10 @@ You can change the screen mode at runtime with the `ChangeScreenMode` method: Window.ChangeScreenMode(ScreenMode.Fullscreen); ``` +You can change the window size at runtime with the `SetWindowSize` method. + +```cs +Window.SetWindowSize(1280, 720); +``` + Note that if you change the screen resolution, it is *your* responsibility to manage any graphics state that may need to change as a result of this change.