MCPcopy Create free account
hub / github.com/DISTRHO/DPF / _updateSize

Method _updateSize

dgl/src/NanoVG.cpp:292–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290}
291
292void NanoImage::_updateSize()
293{
294 int w=0, h=0;
295
296 nvgImageSize(fHandle.context, fHandle.imageId, &w, &h);
297
298 if (w < 0) w = 0;
299 if (h < 0) h = 0;
300
301 fSize.setSize(static_cast<uint>(w), static_cast<uint>(h));
302}
303
304// -----------------------------------------------------------------------
305// Paint

Callers

nothing calls this directly

Calls 2

nvgImageSizeFunction · 0.85
setSizeMethod · 0.45

Tested by

no test coverage detected