From 08d915bfd1c279bac6dedf0393816ef225b6aed2 Mon Sep 17 00:00:00 2001 From: Patrick Desaulniers Date: Sat, 19 May 2018 11:54:02 -0400 Subject: [PATCH] Allow negative scaling of NanoVG context --- dgl/src/NanoVG.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dgl/src/NanoVG.cpp b/dgl/src/NanoVG.cpp index 47e17e7d..a937a350 100644 --- a/dgl/src/NanoVG.cpp +++ b/dgl/src/NanoVG.cpp @@ -472,9 +472,7 @@ void NanoVG::skewY(float angle) void NanoVG::scale(float x, float y) { if (fContext == nullptr) return; - DISTRHO_SAFE_ASSERT_RETURN(x > 0.0f,); - DISTRHO_SAFE_ASSERT_RETURN(y > 0.0f,); - + nvgScale(fContext, x, y); }