commit 0078e735f7131fa1c2798bafb9866458886df9fb parent 78988eeeb0ae7a9580794d400c41d7604b12691b Author: Patrick Desaulniers <desaulniers.patrick@carrefour.cegepvicto.ca> Date: Sun, 14 Oct 2018 10:19:33 -0400 Allow negative rotation angle Diffstat:
M | dgl/src/NanoVG.cpp | | | 6 | ++---- |
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/dgl/src/NanoVG.cpp b/dgl/src/NanoVG.cpp @@ -447,10 +447,8 @@ void NanoVG::translate(float x, float y) void NanoVG::rotate(float angle) { - if (fContext == nullptr) return; - DISTRHO_SAFE_ASSERT_RETURN(angle > 0.0f,); - - nvgRotate(fContext, angle); + if (fContext != nullptr) + nvgRotate(fContext, angle); } void NanoVG::skewX(float angle)