Advertisement

Cursors and DirectX

Started by February 07, 2002 09:24 PM
2 comments, last by utwo007 22 years, 10 months ago
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);
Advertisement
or... ShowCursor(TRUE)?
http://www.dualforcesolutions.comProfessional website designs and development, customized business systems, etc.,
Naw. I''m just using a cursor resource that a load into the window class. Should I draw my own, then?

---signature---
People get ready.
I''m ready to play.
---signature---People get ready.I'm ready to play.

This topic is closed to new replies.

Advertisement