Sign in to follow this  
kovacsp

Rectangle surrounding mouse cursor

Recommended Posts

Hi, I have a windowed directx and mfc app, and my problem is that the mouse cursor is surrounded by an almost trasparent, but still disturbing rectangle. It is most visible when the background is dark. I'm not sure yet, but it seems that the rectangle is stronger on ATI cards. Anyone seen this before? What could be the problem? Thanks for your answers in advance, Peter

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Hi,

what are the properties of window that handles dx ?

Share this post


Link to post
Share on other sites
if it's a fullscreen app I have read that directX can have problems with the standard windows mouse cursors. I would recommend simply implementing your own cursor (which has the added bonus of improved customizability). This is relatively simple to implement: Hide the standard cursor and draw your new cursor at mouse position x,y

Share this post


Link to post
Share on other sites
Thanks for your answers, guys. Now I looked at it, and I have hredraw and vredraw everywhere...

Yes, an own cursor implementation could be better, but we can do everything we need with this, apart from this little problem. I think it wouldn't worth it. But I'm afraid it will be needed.

Any other ideas?

Peter

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this