summaryrefslogtreecommitdiff
path: root/dgl/src/NanoVG.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dgl/src/NanoVG.cpp')
-rw-r--r--dgl/src/NanoVG.cpp4
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);
}