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

Function doUpdate

modules/piu/Pebble/piuView.c:432–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430}
431
432static void doUpdate(Layer *layer, GContext *ctx)
433{
434 Window *window = layer_get_window(layer);
435 PiuView* self = window_get_user_data(window);
436 PiuApplication* application = (*self)->application;
437 PiuApplicationAdjust(application);
438
439 PiuRectangleRecord area;
440 PiuRectangleSet(&area, 0, 0, ctx->dest_bitmap.bounds.size.w, ctx->dest_bitmap.bounds.size.h);
441 (*self)->ctx = ctx;
442 (*(*application)->dispatch->update)(application, self, &area);
443}
444
445void PiuView_create(xsMachine* the)
446{

Callers

nothing calls this directly

Calls 2

PiuApplicationAdjustFunction · 0.85
PiuRectangleSetFunction · 0.85

Tested by

no test coverage detected