Browse Source

Reset NanoVG state before drawing.

tags/v1.0.0
Andrew Belt 5 years ago
parent
commit
ffb9e4b661
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/window.cpp

+ 1
- 0
src/window.cpp View File

@@ -364,6 +364,7 @@ void Window::run() {
if (visible) {
// Update and render
nvgBeginFrame(vg, fbWidth, fbHeight, pixelRatio);
nvgReset(vg);
nvgScale(vg, pixelRatio, pixelRatio);

widget::Widget::DrawArgs args;


Loading…
Cancel
Save