Directdraw: mouse refresh...

Started by
4 comments, last by TeraZen 22 years, 3 months ago
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
Last of the Returners
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.
Trying is the first step towards failure.
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.
I''ve posted my message in the same time as Ragonastick...
he''ve won me for some seconds though
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.
Trying is the first step towards failure.
Lifepower, you beat me in round 2

Trying is the first step towards failure.
Trying is the first step towards failure.

This topic is closed to new replies.

Advertisement