When 2.0 fullscreen mode, after 'win-tab' makes the program fails the display

Hi.

I ported my program SDL 1.2 to SDL 2.0

V-Sync works very well, and so my bullet moving animation is working very well, without buzzing or tearing.

however, when fullscreen mode, after ‘win-tab’ makes the program, the problem occured.

after ‘win-tab’, back to the desktop, and return to the game program, display fails!

the program same occurs in window mode, when ‘Ctrl + Alt + Delete’ access to ‘task manager screen’,

and back to the desktop, display fails.

my screen init code is based on Official Sample Source Code of SDL 2.0. (common.c, common.h)

My Environment is Windows 7, Visual Studio 2010, and Uses Dual Display.

Are you using the SDL renderer, or OpenGL? switching from a full screen
window using either of those will require you to reload any textures you’re
using.

Otherwise, how is the display failing? Is it just giving you a blank
screen?

If you can provide us with more information, I’m sure we can help get your
program working properly :slight_smile:

Take care,
-AlexOn Mon, Dec 17, 2012 at 6:32 PM, axt32 wrote:

Hi.

I ported my program SDL 1.2 to SDL 2.0

V-Sync works very well, and so my bullet moving animation is working very
well, without buzzing or tearing.

however, when fullscreen mode, after ‘win-tab’ makes the program, the
problem occured.

after ‘win-tab’, back to the desktop, and return to the game program,
display fails!

the program same occurs in window mode, when ‘Ctrl + Alt + Delete’ access
to ‘task manager screen’,

and back to the desktop, display fails.

my screen init code is based on Official Sample Source Code of SDL 2.0.
(common.c, common.h)

My Environment is Windows 7, Visual Studio 2010, and Uses Dual Display.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org