-
I am using bitblt just to simply move an object to right. But when the object i am moving reaches a certain point it disapears. I tried moving the object down and the same thing happens,btw i am using a backbuffer and the problem occurs in the frontbuffer or visable area. Any help
-
You probably draw it out of your backbuffer?
-
Im not sure
Im not sure what your saying but this is what im doing
this copies sprite to back buffer
bitblt buffer.hdc,x,y,50,50,sprite.hdc, 0,0,srcpaint
this copies image to front buffer
bitblt front.hdc,x,y,50,50,buffer.hdc, 0,0,srccopy
any idea???
-
just what I said *lol*
try this instead:
Code:
BitBlt Buffer.hDC, X, Y, 0, 0, Sprite.hDC, 0, 0, vbSrcPaint
BitBlt Front.hDC, X, Y, 50, 50, Buffer.hDC, 0, 0, vbSrcCopy
'Code improved by vBulletin Tool (Save as...)