Jump to content
  • Advertisement
Sign in to follow this  
nashat

Clipping in windowed direct mode

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

Hello DX gurus ! I've meet a problem without any found solution in numerious tutorials, manuals and forums... Hope someone here can help ;) I want to use DirectDraw direct surface memory access (through IDDrawSurface7.lock()) in windowed mode. DDraw clipper is not the aim here so I handle the clipping by myself through GDI functions GetDCEx() and GetRandomGgn(). All is fine until I start quickly moving some other window over my DDraw window, then this top window is overpainted. As far as I understand this happens because withing lock() unlock() block other windows are not blocked and could still be moved. So if during rendering process other window is moved to the position which should be repainted this window is get dirty :( But the DirectDraw Clipper somehow handles such situations and keeps clipping region updated or blocks something during Blit for example. If you have some information that what I want is not possible at all, please give me a note ;) Appreciate any your help very very much! Thanks ;)

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!