[2.0.3]-Full Screen Desktop Fails On Linux?

[2.0.3]-Full Screen Desktop Fails On Linux?

Hi,

We are trying to make a cross-platform game using SDL2 v2.0.3.
We have everything working 100% on Microsoft Windows platform.

We have a problem with full screen desktop failing to work on Linux(Linux Mint 17.1 KDE 64Bit)?
Here is our code:

Code:
if (visuals->FullScreenMode == false) SDL_SetWindowFullscreen(visuals->Window, 0);
else if (visuals->FullScreenMode == true) SDL_SetWindowFullscreen(visuals->Window, SDL_WINDOW_FULLSCREEN_DESKTOP);

Is there a problem with our source code which would make full screen desktop fail to work properly on Linux?
Again, it works 100% perfectly on Microsoft Windows platform.
Thanks in advance!------------------------
JeZxLee
JessePalser <AT> GMail <DOT> com
16BitSoft Inc.
Video Game Design Studio
www.16BitSoft.com

Hi,

We got full screen desktop working now on Linux.
You have to unload all textures before changing the game’s window
and then reload all textures after…

Thanks!------------------------
JeZxLee
JessePalser <AT> GMail <DOT> com
16BitSoft Inc.
Video Game Design Studio
www.16BitSoft.com

Hi,

We spoke too soon…
Full screen desktop is again not working on Linux(Linux Mint 17.1 KDE 64Bit)?
Anyone know why?
(it’s SDL2 ver. 2.0.2 from Synaptic Package Manager)

Here is a screenshot:
[Image: http://16bitsoft.com/images/temp/SDL2-FullScreenDesktop-Issues-Linux-01.png ]------------------------
JeZxLee
JessePalser <AT> GMail <DOT> com
16BitSoft Inc.
Video Game Design Studio
www.16BitSoft.com

Are you also setting the window size to match the desktop resolution?

Christian Knudsen wrote:

Are you also setting the window size to match the desktop resolution?
Hi,

How would I do that?
I mean which SDL2 functions would I use?

Thanks…------------------------
JeZxLee
JessePalser <AT> GMail <DOT> com
16BitSoft Inc.
Video Game Design Studio
www.16BitSoft.com

https://wiki.libsdl.org/SDL_GetCurrentDisplayMode
https://wiki.libsdl.org/SDL_SetWindowSize

Hi,

Ok, so I think we’ve fixed full screen desktop mode on Linux.
You have to both reload textures and reinitialize the renderer…

Original forum post for mailing list members:
https://forums.libsdl.org/viewtopic.php?t=11240------------------------
JeZxLee
JessePalser <AT> GMail <DOT> com
16BitSoft Inc.
Video Game Design Studio
www.16BitSoft.com