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

Function PiuViewFillColor

modules/piu/MC/piuView.c:680–699  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

678
679
680void PiuViewFillColor(PiuView* self, PiuCoordinate x, PiuCoordinate y, PiuDimension w, PiuDimension h)
681{
682 Poco poco = (*self)->poco;
683 if ((w <= 0) || (h <= 0)) return;
684 x += poco->xOrigin;
685 y += poco->yOrigin;
686#ifdef piuGPU
687 PocoRectangleFill(poco, (*self)->pixel, (*self)->blend, x, y, w, h);
688#else
689 {
690 PIUQueueCommand(FillColorCommand);
691 command->color = (*self)->pixel;
692 command->blend = (*self)->blend;
693 command->x = x;
694 command->y = y;
695 command->w = w;
696 command->h = h;
697 }
698#endif
699}
700
701void PiuViewFillTexture(PiuView* self, PiuTexture* texture, PiuCoordinate x, PiuCoordinate y, PiuDimension w, PiuDimension h, PiuCoordinate sx, PiuCoordinate sy, PiuDimension sw, PiuDimension sh)
702{

Callers 2

PiuPort_fillColorFunction · 0.50
PiuSkinDrawFunction · 0.50

Calls 1

PocoRectangleFillFunction · 0.85

Tested by

no test coverage detected