Archived

This topic is now archived and is closed to further replies.

utwo007

Cursors and DirectX

Recommended Posts

utwo007    122
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.

Share this post


Link to post
Share on other sites
EvilCrap    134
if your drawing a cursor, then you need to draw it after you paint the background...

do
{
drawBackground();
drawDebugTexts();
drawCursor();
}while(1);

Share this post


Link to post
Share on other sites
utwo007    122
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.

Share this post


Link to post
Share on other sites