diff options
author | falkTX <falktx@gmail.com> | 2018-05-20 11:19:07 +0200 |
---|---|---|
committer | falkTX <falktx@gmail.com> | 2018-05-20 11:19:07 +0200 |
commit | 9d0da9744baa9d4f18dde82f613418f90ccf0018 (patch) | |
tree | 81a8b29e73b5de75cfa33d2bcd389a5d40b9752d | |
parent | e70a6d2719fc95dc5220e063ae9eb633adb3bede (diff) |
Allow negative values in NanoVG::scale()
Closes #49
-rw-r--r-- | dgl/src/NanoVG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dgl/src/NanoVG.cpp b/dgl/src/NanoVG.cpp index 47e17e7d..8caeeb94 100644 --- 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); } |