Browse Source

Allow negative values in NanoVG::scale()

Closes #49
pull/34/merge
falkTX 7 years ago
parent
commit
9d0da9744b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      dgl/src/NanoVG.cpp

+ 2
- 2
dgl/src/NanoVG.cpp View File

@@ -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);
}


Loading…
Cancel
Save