• Advertisement

Archived

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

Cursors and DirectX

This topic is 5860 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
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

  • Advertisement