| 361 | // ----------------------------------------------------------------------- |
| 362 | |
| 363 | void NanoVG::beginFrame(const uint width, const uint height, const float scaleFactor) |
| 364 | { |
| 365 | DISTRHO_SAFE_ASSERT_RETURN(scaleFactor > 0.0f,); |
| 366 | DISTRHO_SAFE_ASSERT_RETURN(! fInFrame,); |
| 367 | fInFrame = true; |
| 368 | |
| 369 | if (fContext != nullptr) |
| 370 | nvgBeginFrame(fContext, static_cast<int>(width), static_cast<int>(height), scaleFactor); |
| 371 | } |
| 372 | |
| 373 | void NanoVG::beginFrame(Widget* const widget) |
| 374 | { |
no test coverage detected