Sign in to follow this  

Backbuffer problems

This topic is 4868 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, I am having trouble using a backbuffer with DirectDraw. Basically, I lock the backbuffer (called 'lpddsback'), clear it to black with memset, unlock it and blit to it (using Blt() not Bltfast()). I am blitting only colour, not bitmaps or other surfaces, just plain RGB 565 colour. Then I use lpddsprimary->Flip(). The problem is that the left half of the screen is fine, but the right half has garbage. After 3 hours of trying to fix this, I can't see whats wrong. My only idea is that I am using Blt incorrectly. I call it as a function of the backbuffer. Can anyone suggest what could be wrong? Thanks :)

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Good point. It was fixed by using the 8-bit pallete properly... I was only creating the palette and not attaching it to the surface. Embarassing, I know. So the lesson is - always check you havn't missed out any fundamental stages!

Share this post


Link to post
Share on other sites

This topic is 4868 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.

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