From 58340bf56baa6b0844aa761b63de451efbebac93 Mon Sep 17 00:00:00 2001 From: Patrick Desaulniers Date: Sun, 14 Oct 2018 10:20:00 -0400 Subject: [PATCH] Allow negative rotation angle --- dgl/src/NanoVG.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dgl/src/NanoVG.cpp b/dgl/src/NanoVG.cpp index 3ef7b35d..3c29222a 100644 --- 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)