Jump to content
  • Advertisement

Archived

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

TeraZen

Directdraw: mouse refresh...

This topic is 6096 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

I''ve tried many samples of Tiles Engine using DirectDraw... I''ve noticed that when the mouse cursor is at the top of the screen, it seems to duplicate, like if it didn''t refresh... Why? Thanks TeraZen

Share this post


Link to post
Share on other sites
Advertisement
Sounds like a clipping problem actually. Make sure that either the direct draw clipper is set up right, or that a custom clipper is working correctly. I prefer using a custom clipper jsut for the extra control.

Trying is the first step towards failure.

Share this post


Link to post
Share on other sites
Besides what you said, I''ve also seen a mouse shift of get inverse when getting to the top of the screen in some DDraw apps. I think that''s clipping problem - either because clipping wasn''t made correctly or maybe some DirectDrawClipper issues.

Share this post


Link to post
Share on other sites
Oh, and I forgot to mention, check the return value of the BltFast/Blt function for the mouse cursor, if it is DD_INVALIDRECTS then it is a clipping problem, if it is always DD_OK, then I''m stumped.

For me, I also get weird white artefacts if I don''t clip on the right hand edge.

Trying is the first step towards failure.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!