Browse Source

Allow negative rotation angle

pull/81/head
Patrick Desaulniers Filipe Coelho <falktx@falktx.com> 5 years ago
parent
commit
0078e735f7
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      dgl/src/NanoVG.cpp

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

@@ -447,10 +447,8 @@ void NanoVG::translate(float x, float y)

void NanoVG::rotate(float angle)
{
if (fContext == nullptr) return;
DISTRHO_SAFE_ASSERT_RETURN(angle > 0.0f,);

nvgRotate(fContext, angle);
if (fContext != nullptr)
nvgRotate(fContext, angle);
}

void NanoVG::skewX(float angle)


Loading…
Cancel
Save