[SDL] Does SDL clip surfaces on blitting?

James Barrett xucaen at gmail.com
Sat Dec 29 22:36:29 PST 2007



L-28C wrote:
> Hello everyone!
>
> Quick question for the experts: suppose you have a 640x480 image and a 
> 480x272 screen. If you were to blit the image onto the screen (which is 
> smaller than the image), would SDL blit the WHOLE surface onto the 
> screen, even the out-of-bounds pixels?
>
>   

Hi, I'm in no way, shape, or form an expert. But I know this one.  ;-)
Yes, if you blit a 640x480 to a 480x272 screen, only 480x272 of the
image will be visible. The rest is "off screen".


jim


More information about the SDL mailing list