Skip to main content
gamedev.net
🔒 Locked

Directdraw: mouse refresh...

Started by TeraZen Jan 10, 2002 at 9:01 PM 4 replies 300+ views
Original Post
TeraZen
TeraZen
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
ragonastick
ragonastick
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.
Lifepower
Lifepower
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.
Lifepower
Lifepower
I''ve posted my message in the same time as Ragonastick...
he''ve won me for some seconds though
ragonastick
ragonastick
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.
ragonastick
ragonastick
Lifepower, you beat me in round 2

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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.