PDA

View Full Version : Mouse flickering



Quaternion
01-23-2001, 12:16 PM
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?

Bob
01-23-2001, 12:22 PM
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.

Quaternion
01-23-2001, 12:28 PM
I am using win 98

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

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

fox
01-25-2001, 12:58 AM
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

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