For example, having this:
[code]// reduce clip region to certain part of screen
g.reduceClipRegion(clip_x,clip_y,clip_w,clip_h);
// draw stuff here (clipped to the region reduced above)
// …
// end clipping
g.setClipRegion(RectangleList(Rectangle(0,0,w,h)));[/code]
Just wondering if there’s a more elegant call to restore default clip region for the current graphic context, because under osx seems the last line throws assertion (doesnt do under WinXP).