View Full Version : Mouse flickering

01-23-2001, 11:16 AM
My mouse cursor flickers in my OpenGL program.
When I don't call SwapBuffers(...) it doesn't flickers anymore (but the buffers do not swap...).
What is the problem?

01-23-2001, 11:22 AM
I think the shadow from the mouse cursor in Windows 2000 can cause some problems. Dunno if it's something like this though, cause I have never experienced it. Try turn it off, if you use Win2k that is.

01-23-2001, 11:28 AM
I am using win 98

Kilam Malik
01-24-2001, 12:41 AM
Have you got code in your mouse move event? Maybe you do a redraw there?

01-24-2001, 07:30 AM
No Invalidate()
No Massage Handeling except WM_CLOSE and WM_SIZE.

01-24-2001, 11:58 PM
Yes, i had a very similar problem

what i did was in the drawing code

just before glFlush(); use ::ShowCursor(False); and after it turned it on with ::ShowCursor(True);

hope that helps

01-25-2001, 02:13 AM
Thanks Fox, but this wasn't the problem.
I changed my cursor type from 3D to regular and it sloved the problem...