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

Function PiuViewBegin

modules/piu/MC/piuView.c:174–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174void PiuViewBegin(PiuView* self)
175{
176 xsMachine* the = (*self)->the;
177 Poco poco = (*self)->poco;
178 PocoCoordinate x, y;
179 PocoDimension w, h;
180
181 PiuFontListLockCache(the);
182 x = 0;
183 y = 0;
184 w = poco->width;
185 h = poco->height;
186 rotateCoordinatesAndDimensions(poco->width, poco->height, x, y, w, h);
187
188#if kPocoFrameBuffer
189 if (!(poco->flags & kPocoFlagFrameBuffer))
190#endif
191 poco->next = (PocoCommand)poco->displayList;
192
193 poco->flags &= ~(kPocoFlagErrorDisplayListOverflow | kPocoFlagErrorStackProblem | kPocoFlagGCDisabled);
194 poco->stackDepth = 0;
195 poco->xOrigin = poco->yOrigin = 0;
196
197 poco->x = x;
198 poco->y = y;
199 poco->w = w;
200 poco->h = h;
201
202 poco->xMax = x + w;
203 poco->yMax = y + h;
204
205#ifdef piuGPU
206 PocoDrawingBegin(poco, 0, 0, w, h);
207#else
208#if kPocoFrameBuffer
209 poco->frameBuffer = NULL;
210#endif
211 (*self)->current = sizeof(PiuViewRecord);
212#endif
213}
214
215#ifdef piuGPU
216#else

Callers 1

piuView.cFile · 0.85

Calls 2

PiuFontListLockCacheFunction · 0.85
PocoDrawingBeginFunction · 0.85

Tested by

no test coverage detected