WinXP & OpenGL, Weird task bar problem

I’m creating a window using SDL_SetVideoMode for OpenGL rendering. The problem is that the window is only sometimes added to the taskbar, sometimes appears once the window is manipulated, and seems to stop anything else on the task bar from working (at least until after the app exits.) I’ve tried the same program (without recompiling) on a win98 machine with no problems at all.

I’m using SDL version 1.2.3 and visual C++ 6.0 (sp 5)

This is the function call:

SDL_SetVideoMode( 640, 480 , 16 , SDL_OPENGL | SDL_ANYFORMAT SDL_RESIZABLE );

Any suggestions?

— Andrew Murie wrote:

I’m creating a window using SDL_SetVideoMode for OpenGL
rendering. The problem is that the window is only sometimes
added to the taskbar, sometimes appears once the window is
manipulated, and seems to stop anything else on the task bar
from working (at least until after the app exits.) I’ve tried
the same program (without recompiling) on a win98 machine with
no problems at all.

I’m using SDL version 1.2.3 and visual C++ 6.0 (sp 5)

This is the function call:

SDL_SetVideoMode( 640, 480 , 16 , SDL_OPENGL | SDL_ANYFORMAT
SDL_RESIZABLE );

Any suggestions?

Do you start with this SDL_SetVideoMode call? I have an app
that first presents a window with SDL_ANYFORMAT and after
letting the user choose a resolution, goes to opengl. This has
none of the problems you describe.=====
Dave Brondsema
dave at brondsema.net
http://www.brondsema.net


Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

Do you start with this SDL_SetVideoMode call? I have an app
that first presents a window with SDL_ANYFORMAT and after
letting the user choose a resolution, goes to opengl. This has
none of the problems you describe.

Does your program have the problem without that first window, though?

I just tried a couple of the demo programs off the website, and they had
problems with the task bar, too, so it may not have been an OpenGL problem
anyway.

It could be something wrong with my system, too - I just recently had to
reinstall it, and I’m only hoping all the drivers are 100% right, but I
can’t see any way to work out why it’s just SDL that has this problem.

— Andrew Murie wrote:

Do you start with this SDL_SetVideoMode call? I have an app
that first presents a window with SDL_ANYFORMAT and after
letting the user choose a resolution, goes to opengl. This
has
none of the problems you describe.

Does your program have the problem without that first window,
though?

I just tried a couple of the demo programs off the website,
and they had
problems with the task bar, too, so it may not have been an
OpenGL problem
anyway.

It could be something wrong with my system, too - I just
recently had to
reinstall it, and I’m only hoping all the drivers are 100%
right, but I
can’t see any way to work out why it’s just SDL that has this
problem.

Yeah, the first window appears correctly in the taskbar. I
immediately call two SDL_WM_ functions, so I tried removing
those and it still seems to work fine. I’m using SDL 1.2.3 My
guess would be that it’s a problem on your system. If you want,
you can email the program to me to test.
dave at NOSPAM.brondsema.net=====
Dave Brondsema
dave at brondsema.net
http://www.brondsema.net


Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com