• Advertisement

Archived

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

Can you use GDI BitBlt to non OFFSCREENPLAIN surfaces?

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

Hi there, I''m writing some basic DirectDraw library functions by way of getting my head around DirectDraw. One in particular handles the standard task of loading a BITMAP file or resource onto a provided DirectDraw surface -- my code is identical to the example ddutil.cpp code, just with better error checking. I''m running in exclusive, full-screen mode. My code works fine when passed a surface that is DDSCAPS_OFFSCREENPLAIN, however, for say primary or backbuffer surfaces, the BitBlt() I''m using to copy the bitmap from a GDI device context to a DirectDraw surface device context doesn''t seem to do anything. Can one BitBlt (and more generally use GDI functions) on DirectDraw primary and back buffer surfaces? If so, can you provide source code? If not, do you know why? Thanks, Jaye.

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement