Problems with SDL 1.2.8

I updated SDL to version 1.2.8 today. The last version i used was 1.2.5.

In my app it is possible to switch to fullscreen and back at runtime.
When the mode should be toggled i call SDL_Quit, SDL_Init and SDL_SetVideo
with the SDL_FULLSCREEN flag or not.

The first switch to fullscreen works. When switching back to windowed mode,
my system runs very slowly and all i can do is to kill the process after
some time. This problem did not occur in width 1.2.5.

Furthermore i react on the keydown event to flag the key as pressed in
my own keystate map. Analogue in the keyup event. It works the first time,
too.
After a switch to fullscreen the keyup event is send immediatly after
the keydown event, so every key i mapped with “up” state.
I wrote this code some time ago and it worked always on my old machine.

Regards,
Jan

hardware: notebook, Windows XP, PentiumM 1.6GHz, RADEON 9600 Pro Turbo
Mobile.

You should just call SDL_SetVideo() with the SDL_FULLSCREEN flag and assign
the returned pointer to the previous screen. If I’m not misunderstood it
won’t create any memory leak.

Regards.----- Mensaje original -----
De: “Jan Becker”
Env.: 14/02/05 0:32:57
Para: “sdl at libsdl.org
Asunto: [SDL] Problems with SDL 1.2.8

I updated SDL to version 1.2.8 today. The last version i used was 1.2.5.

In my app it is possible to switch to fullscreen and back at runtime.
When the mode should be toggled i call SDL_Quit, SDL_Init and

SDL_SetVideo
with the SDL_FULLSCREEN flag or not.

The first switch to fullscreen works. When switching back to windowed

mode,
my system runs very slowly and all i can do is to kill the process after
some time. This problem did not occur in width 1.2.5.

Thank you, it works well for the mode switch. The keyboard
events behave as described in my previous mail.> You should just call SDL_SetVideo() with the SDL_FULLSCREEN

flag and assign the returned pointer to the previous screen.
If I’m not misunderstood it won’t create any memory leak.

Regards.

----- Mensaje original -----
De: “Jan Becker” <@Jan_Becker>
Env.: 14/02/05 0:32:57
Para: “sdl at libsdl.org
Asunto: [SDL] Problems with SDL 1.2.8

I updated SDL to version 1.2.8 today. The last version i 

used was 1.2.5.

In my app it is possible to switch to fullscreen and back 

at runtime.
When the mode should be toggled i call SDL_Quit, SDL_Init
and SDL_SetVideo
with the SDL_FULLSCREEN flag or not.

The first switch to fullscreen works. When switching back 

to windowed mode,
my system runs very slowly and all i can do is to kill
the process after
some time. This problem did not occur in width 1.2.5.

The problem with the keys is gone as well. It was my fault :)> Thank you, it works well for the mode switch. The keyboard

events behave as described in my previous mail.

You should just call SDL_SetVideo() with the SDL_FULLSCREEN
flag and
assign the returned pointer to the previous screen.
If I’m not misunderstood it won’t create any memory leak.

Regards.

----- Mensaje original -----
De: “Jan Becker” <@Jan_Becker>
Env.: 14/02/05 0:32:57
Para: “sdl at libsdl.org
Asunto: [SDL] Problems with SDL 1.2.8

I updated SDL to version 1.2.8 today. The last version 

i used was

1.2.5.

In my app it is possible to switch to fullscreen and back at 

runtime.
When the mode should be toggled i call SDL_Quit, SDL_Init and
SDL_SetVideo
with the SDL_FULLSCREEN flag or not.

The first switch to fullscreen works. When switching back to 

windowed mode,
my system runs very slowly and all i can do is to kill
the process
after
some time. This problem did not occur in width 1.2.5.