Cursors and DirectX
Hello. I''m currently reading TOTWGPG, and I''ve created a program that selects a random color, fills the back buffer with that color using the blitter, and then flips. I''ve also created a custom cursor for it.
On thing I''ve noticed is that the color is painted right on top of the cursor, and when I move the cursor, it pops back into view, and exposes the previous color underneath, right in the area where it was resting. I thought a mouse cusor was an "always on top" sort of thing. Whats going on?
---signature---
People get ready.
I''m ready to play.
---signature---People get ready.I'm ready to play.
if your drawing a cursor, then you need to draw it after you paint the background...
do
{
drawBackground();
drawDebugTexts();
drawCursor();
}while(1);
do
{
drawBackground();
drawDebugTexts();
drawCursor();
}while(1);
or... ShowCursor(TRUE)?
http://www.dualforcesolutions.comProfessional website designs and development, customized business systems, etc.,
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement