On 5 September 2014 21:40, Matteo Bruni matteo.mystral@gmail.com wrote:
Would it be possible to store the clipped rectangles in the stack instead (so that stack->clip_rect == stack->stack[stack->current] at any given moment)? That way you don't need to recompute clip_rect on each pop.
I think you're right, since the application can't observe individual clip rects, only the combined stack.