SFML community forums

Help => Graphics => Topic started by: asdatapel on November 04, 2011, 07:23:10 pm

Title: Atom Zombie Smasher feature
Post by: asdatapel on November 04, 2011, 07:23:10 pm
hey guys. I recently bought atom zombie smasher, and i found out that it uses SFML. Its wierd because when the game opens, the window creation is really smooth, but when i make an SFML app fullscreen, the screen goes black for a second(which also happens with other games). Does anyone know how the creator managed to do this?
Title: Atom Zombie Smasher feature
Post by: Felheart on November 05, 2011, 07:11:35 am
Hi there.
There is a difference between "Fullscreen" and "Maximized window without borders"

I beleive what you mean is the last thing! (WoW and some other games to the same thing)

try this code:
Code: [Select]

window = new RenderWindow(VideoMode.DesktopMode, "Fake-Fullscreen", Styles.None, new ContextSettings());


for "real" and correct fullscreen use this:

Code: [Select]

window = new RenderWindow(VideoMode.FullScreenModes[0], "Real fullscreen", Styles.Fullscreen, new ContextSettings());