MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / PocoOriginPush

Function PocoOriginPush

modules/commodetto/commodettoPocoBlit.c:3800–3819  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3798}
3799
3800void 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
3821void PocoOriginPop(Poco poco)
3822{

Callers 2

xs_poco_originFunction · 0.85
PiuViewPushOriginFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected