
Posted:
Apr 18, 2007 @ 6:21am
by InexorableTash
Short answer: call pDestinationSurface->SetClipper( NULL ) before you do any blting and you should be set.
The default behavior is that a Blt will fail if any part of the destination rectangle is offscreen. (Basically, you've passed in invalid coordinates!)
If you set a clipper (see ), the behavior changes so that if the destination rectangle is partially outside the clipping region, the source/destination rectangles are adjusted for you.

Posted:
Apr 18, 2007 @ 7:33pm
by Staryon
Thanks a million for your detailed answer and for explaining how it works.
I have tried your suggestion and it works great now.
Regards.