🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

background is scrambled

Started by
0 comments, last by da_cobra 22 years, 6 months ago
I have 2 buffer surfaces in my game one for my blocks and one for my background now when I blit my blocks on the backsurface everything ok but when I blit my background on the backsurface it doesn't appear => gameloop() { blitbackground() ; blitblocks() ; flipsurfaces() ; } void BlitBackground() { // make the current copy position for the source background SetRect(&src, 0, 0, 0, 0) ; // SetRect( &src, top, left, right, bottom ); // make the current paste position for the destination background SetRect(&dest, 0, 0, 800, 600) ; // now blit the background onto the backbuffer G.lpDDSBack->Blt(&dest, G.lpDDSBackground, &src, DDBLT_WAIT, NULL) ; } // end of BlitBackground() so when I use it this way my blocks show up alright but my background not any help is apreciated Edited by - da_cobra on December 4, 2001 1:17:48 PM
Advertisement
never mind I fixed it
I just didn''t thought it through enough

This topic is closed to new replies.

Advertisement