The-Forge icon indicating copy to clipboard operation
The-Forge copied to clipboard

Issue of fullscreen windows at start

Open ilyachastikov opened this issue 6 months ago • 1 comments

If fullscreen is needed at start and if creating constructor for this for example:

Transformations() {
	mSettings.mFullScreen = true;
	mSettings.mMonitorIndex = 0;
}

then the application will fail because pWindowAppRef->pWindow is not set before toggleFullscreen(winDesc) in file WindowsWindow.cpp. I think that the best solution to fix this issue is adding string pWindowAppRef->pWindow = winDesc; after 550 string number in WindowsWindow.cpp. Also I think that to adjust initial parameters in constructor is not flexible because memory allocator and filesystem is not set for moment of constructor invocation. It will be good to add some additional virtual function for this for initialization some parameters before creating window but after memory allocator and filesystem initialization.

ilyachastikov avatar Dec 26 '23 05:12 ilyachastikov