Browse Source

Allow negative scaling of NanoVG context

pull/49/head
Patrick Desaulniers GitHub 7 years ago
parent
commit
08d915bfd1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      dgl/src/NanoVG.cpp

+ 1
- 3
dgl/src/NanoVG.cpp View File

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



Loading…
Cancel
Save