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

Function PiuScreenBufferBind

modules/piu/Pebble/piuScreenBuffer.c:66–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64};
65
66void PiuScreenBufferBind(void* it, PiuApplication* application, PiuView* view)
67{
68 PiuScreenBuffer* self = it;
69 GContext *ctx = (*view)->ctx;
70 GBitmap* context_bitmap = graphics_context_get_bitmap(ctx);
71 GBitmap* buffer_bitmap = gbitmap_create_blank(context_bitmap->bounds.size, context_bitmap->info.format);
72 bitblt_bitmap_into_bitmap(buffer_bitmap, context_bitmap, GPointZero, GCompOpAssign, GColorWhite);
73 (*self)->buffer = buffer_bitmap;
74 PiuContentBind(it, application, view);
75}
76
77void PiuScreenBufferDraw(void* it, PiuView* view, PiuRectangle area)
78{

Callers

nothing calls this directly

Calls 1

PiuContentBindFunction · 0.85

Tested by

no test coverage detected