Jump to content
  • Advertisement
Sign in to follow this  

Odd DirectDraw Behaviour (yeah, I know it's DirectDraw)

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

Hey all, First off, yeah, I know I'm using DirectDraw (like, IDirectDraw4 or whatever), but I'm just trying out some things. Anyway, I was working on this project last year and had my grahpics working just fine. I stopped working on it because of actual work, and eventually switched video cards (now running a GeForce 6800 GT OC). I've come back to work on it now that I have a few minutes here and there. I noticed now that the background graphics are messing up pretty bad. They're simply DirectDraw surfaces that are copied/blitted to another surface, and then put onto the back-buffer for flipping. I'll put some rough pseudocode here that I think is the culprit: create DX Surface1; create DX Surface2; blit to Surface1; blit to Surface2; copy Surface1 to back-buffer; After some investigating, if I don't blit to Surface2, Surface1 (the main background surface) is just fine! But if I leave the blitting to Surface2 in, Surface1 gets corrupted/messed up. It looks like Surface2 is overwrting Surface1! I've checked the pointer addresses and they're different, so I'm pretty sure I'm not using the same surface both times. Has anyone run across this before? I'm thinking it might be related to my video card, but, I have no way of really knowing right now. Thanks in advance for any help! Cheers, Duncan

Share this post

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

  • Advertisement

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!