SyntaxBomb - Indie Coders

Languages & Coding => BlitzMax / BlitzMax NG => MiniB3D => Topic started by: Kippykip on October 27, 2019, 12:34:23 PM

Title: Changing resolution on the fly.
Post by: Kippykip on October 27, 2019, 12:34:23 PM
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.
Title: Re: Changing resolution on the fly.
Post by: RemiD on October 27, 2019, 12:52:34 PM
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.
SimplePortal 2.3.6 © 2008-2014, SimplePortal