| 332 | } |
| 333 | |
| 334 | void PiuViewPopClip(PiuView* self) |
| 335 | { |
| 336 | GContext *ctx = (*self)->ctx; |
| 337 | PiuRectangle clip; |
| 338 | if (0 == (*self)->clipDepth) { |
| 339 | fxReport((*self)->the, "Piu clip stack underflow"); |
| 340 | return; |
| 341 | } |
| 342 | clip = &((*self)->clips[--((*self)->clipDepth)]); |
| 343 | ctx->draw_state.clip_box = GRect(clip->x, clip->y, clip->width, clip->height); |
| 344 | } |
| 345 | |
| 346 | void PiuViewPopColor(PiuView* self) |
| 347 | { |