What is the correct way to switch resolution in an Edge-powered app when running on a Windows PC?
Also, what is the correct way to switch between fullscreen and windowed mode when running on a Windows PC?
Hi ChezDoodles,
You can change the resolution of fullscreen applications by calling the following functions in your framework:
ecd.dsp->Close();
ecd.dsp->Open(e_wnd, &ecd;, ecd.cfg->videotype, xres, yres, true);
Although it works, we recommend changing this method when we add the proper way to change the screen resolution. Unfortunately, changing between windowed and fullscreen mode isn't supported yet.
Hi Edge,
Has there been any update on this? I see the release notes for 3.70 says resolution/color depth changes are now handled correctly on Windows machines; should this be done through Open() as shown above? And is there any way to switch between windowed and full screen modes?
Thanks,
John
Hi,
When the colordepth changes on the Windows machine (while the game is running), the colordepth of EDGELIB doesn't change. However, in the final flip a color conversion is done to match the new colordepth (the game will keep running in an emulated colordepth).
To handle windowed mode/fullscreen mode changes we recommend using a configuration option. This option will only have an effect when the game is started. The user will need to restart the game after setting this configuration option (this is how many games handles this).