[SDL] Re: Surface coordinates can't be less than zero?

Nick Stovall nsto135 at aol.com
Sat Nov 26 14:06:39 PST 2005

> So, for example if your screen is size 100x100 and you have a off screen 
> surface of size 150x150 this gives you a 25 pixel buffering zone all 
> round the edge of the screen.
> You would translate any screen co-ordinates by (+25, +25) before drawing 
> to the off screen surface.  Then you would blit the off screen surface 
> from 25,25 to 125,125 to the screen at screen position 0,0.
> Hope this makes sense. I tend to ramble.
> - Tom

The problem with that is that when I blit the buffer to the screen,
its X- and Y- coordinates will still be set to 0, just like any other

More information about the SDL mailing list