background is scrambled
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement