DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit 9d0da9744baa9d4f18dde82f613418f90ccf0018
parent e70a6d2719fc95dc5220e063ae9eb633adb3bede
Author: falkTX <falktx@gmail.com>
Date:   Sun, 20 May 2018 11:18:40 +0200

Allow negative values in NanoVG::scale()
Closes #49

Diffstat:
Mdgl/src/NanoVG.cpp | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dgl/src/NanoVG.cpp b/dgl/src/NanoVG.cpp @@ -472,8 +472,8 @@ 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,); + DISTRHO_SAFE_ASSERT_RETURN(d_isNotZero(x),); + DISTRHO_SAFE_ASSERT_RETURN(d_isNotZero(y),); nvgScale(fContext, x, y); }