• Advertisement

Archived

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

DDraw Overdrawing Window

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

For some reason my direct draw window is overwriteing my desktop. Is there some way to keep it contained and make sure it doesn''t overwrite other programs?

Share this post


Link to post
Share on other sites
Advertisement
Yes, there is when you set the cooperation level, you have to make sure you aren''t telling DirectDraw to go fullscreen or something. How much of the desktop is being drawn over? If its the whole thing then you have to change a flag in the SetCooperativeLevel() call in your Init code. if its only a portion of the desktop in your (windowed?) app, then you may have to change your surface sizes or something. Hope this helps.



-Koz

Share this post


Link to post
Share on other sites
If this is windowed mode, add a Clipper to the window/primary surface (look at the samples in the SDK for code)

--
Simon O''''Connor
Creative Asylum Ltd
www.creative-asylum.com

Share this post


Link to post
Share on other sites

  • Advertisement