Fullscreen Problems with Windows98SE + OpenGL

Hello,

I am using SDL and OpenGL under Windows 98SE. My problem occurs when the
window becomes fullscreen at the native desktop resolution - at this
resolution, despite being in fullscreen mode, the startbar is visible (I
run mine always ontop) and any IM programs also stay ontop (I use Miranda).
This wouldn’t be so annoying, if only I weren’t using double buffering,
because the startbar and other ‘ontop’ windows flicker like hell, and when
I call SDL_GL_SwapBuffers(); it doesn’t seem to clear the surface with the
garbage on it, as the windows and startbar get covered with color (left
behind from anything drawn to that region of the screen). At the moment I
am using SDL_SetVideoMode(); and passing it the SDL_FULLSCREEN and
SDL_OPENGL flags.

Is there any way I can remedy this by using some special flags? or is there
a more windows specific trick that somebody knows? (I have programmed in
windows a little but have never found a way to do it myself, but the
windows screensavers do it :/)

Any Help would be greatly appreciated.

Thanks for your time,
Wayne Uroda
@Wayne_Uroda

did you try clearning the screen? it could be that since your using the
same mode as windows, its using the same area in memory and your getting the
actual windows art in your app.> ----- Original Message -----

From: mrwolf@jeminabox.com (Wayne Uroda)
To:
Sent: Friday, February 21, 2003 4:40 AM
Subject: [SDL] Fullscreen Problems with Windows98SE + OpenGL

Hello,

I am using SDL and OpenGL under Windows 98SE. My problem occurs when the
window becomes fullscreen at the native desktop resolution - at this
resolution, despite being in fullscreen mode, the startbar is visible (I
run mine always ontop) and any IM programs also stay ontop (I use
Miranda).
This wouldn’t be so annoying, if only I weren’t using double buffering,
because the startbar and other ‘ontop’ windows flicker like hell, and when
I call SDL_GL_SwapBuffers(); it doesn’t seem to clear the surface with the
garbage on it, as the windows and startbar get covered with color (left
behind from anything drawn to that region of the screen). At the moment I
am using SDL_SetVideoMode(); and passing it the SDL_FULLSCREEN and
SDL_OPENGL flags.

Is there any way I can remedy this by using some special flags? or is
there
a more windows specific trick that somebody knows? (I have programmed in
windows a little but have never found a way to do it myself, but the
windows screensavers do it :/)

Any Help would be greatly appreciated.

Thanks for your time,
Wayne Uroda
mrwolf at jeminabox.com


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Try:
{
SDL_FillRect(screen,NULL,0);
SDL_Flip(screen);
SDL_FillRect(screen,NULL,0);
SDL_Flip(screen);
}
to clean out any garbage that might have been left in the screen buffers…On Friday 21 February 2003 06:40 am, Wayne Uroda wrote:

Hello,

I am using SDL and OpenGL under Windows 98SE. My problem occurs when the
window becomes fullscreen at the native desktop resolution - at this
resolution, despite being in fullscreen mode, the startbar is visible (I
run mine always ontop) and any IM programs also stay ontop (I use Miranda).
This wouldn’t be so annoying, if only I weren’t using double buffering,
because the startbar and other ‘ontop’ windows flicker like hell, and when
I call SDL_GL_SwapBuffers(); it doesn’t seem to clear the surface with the
garbage on it, as the windows and startbar get covered with color (left
behind from anything drawn to that region of the screen). At the moment I
am using SDL_SetVideoMode(); and passing it the SDL_FULLSCREEN and
SDL_OPENGL flags.

Is there any way I can remedy this by using some special flags? or is there
a more windows specific trick that somebody knows? (I have programmed in
windows a little but have never found a way to do it myself, but the
windows screensavers do it :/)

Any Help would be greatly appreciated.

Thanks for your time,
Wayne Uroda
mrwolf at jeminabox.com


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl