| 3798 | } |
| 3799 | |
| 3800 | void PocoOriginPush(Poco poco, PocoCoordinate x, PocoCoordinate y) |
| 3801 | { |
| 3802 | PocoRectangle clip = (PocoRectangle)(poco->displayListEnd - sizeof(PocoRectangleRecord)); |
| 3803 | if ((char *)clip < (char *)poco->next) { |
| 3804 | poco->flags |= kPocoFlagErrorStackProblem; |
| 3805 | pocoInstrumentationMax(PocoDisplayListUsed, (char *)poco->next - (char *)poco->displayList); |
| 3806 | return; |
| 3807 | } |
| 3808 | |
| 3809 | poco->stackDepth++; |
| 3810 | poco->displayListEnd = (char *)clip; |
| 3811 | |
| 3812 | // save current origin |
| 3813 | clip->x = poco->xOrigin; |
| 3814 | clip->y = poco->yOrigin; |
| 3815 | |
| 3816 | // apply new origin |
| 3817 | poco->xOrigin += x; |
| 3818 | poco->yOrigin += y; |
| 3819 | } |
| 3820 | |
| 3821 | void PocoOriginPop(Poco poco) |
| 3822 | { |
no outgoing calls
no test coverage detected