René Dudfield wrote:
I still think a transforming Rect subclass would work best, like your 'sc' function. Otherwise you'd need global state,
The state wouldn't be global, it would be an attribute of the surface, like the clipping rect is now. If you don't want to pollute the state of your main surface, you create a subsurface and pass it to your drawing routines. -- Greg
