Changing resolution on the fly.

Started by Kippykip, October 27, 2019, 12:34:23

Previous topic - Next topic

Kippykip

Is this possible? Or will this be possible? I noticed it's kinda possible but you lose all textures etc in the process.
So far I'm just sticking resolution changes on bootup.

RemiD

maybe this : http://mojolabs.nz/posts.php?topic=108135
Quote
Instant screen resolution switch (ingame)
If you want to switch the resolution ingame a common method is to use EndGraphics and rebuild the whole scene again. Rubbish. Using a MAXGUI window with canvas can switch the resolution ingame with just a new function: SetResolution(x,y). I had to rewrite BeginMax2D/EndMax2D (now called: Begin2D/End2D) for this and use a global "Scaler" variable but it works, try it yourself. In Windows it is even possible to create either a fullscreen window or a window maximized including the Windows Taskbar.