| 290 | } |
| 291 | |
| 292 | void 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 |
nothing calls this directly
no test coverage detected