Archived

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

TeraZen

Directdraw: mouse refresh...

Recommended Posts

TeraZen    122
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
ragonastick    134
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
Lifepower    136
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
ragonastick    134
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