But later I want to switch to fullscreen mode (while playing the MPEG
stream).
The fact is that if I dont do the “hack” when launching (i.e the MPEG
plays in a separate window (not GTK) at the begining), I can use
SDL_WM_ToggleFullScreen() and it works.
But since I do the hack, the SDL_WM_ToggleFullScreen() doesn’t work,
even if I do a :
unsetenv(“SDL_WINDOWID”)…
I’ve tried whith SDL 1.0.4 (using the key binding) and whith SDL 1.1.0
(whith the new function)…
Any solution to my problem?
Thanks.
–
Damien Chavarria.
“There are two major products that come from Berkeley : LSD and UNIX. We
don’t believe this to be a coincidence.”
Is the window destroyed or altered in some way when switching to full
screen? If it is I understand why I got this error (since the gtk window
is my main window)…
Would it be possible to have it working? It would be great since I could
switch to full screen whithout having to pause the mpeg and it would be
useful for all smpeg users…)
Ho…and by the way : when I set the SDL_WINDOWID var, I can’t go to
full screen mode even if I destroy the surface and request a new one in
fullscreen…I need to Quit and re-Init SDL…and smpeg doesn’t like
that at all
It could already be great if I was able to create a new surface in
fullscreen mode if I previously set SDL_WINDOWID, created a windowed
surface and removed SDL_WINDOWID from the environement…