Browse Source

Don't draw shadow if opacity is 0

tags/v0.6.0
Andrew Belt 6 years ago
parent
commit
63dd31f7ca
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/app/CircularShadow.cpp

+ 1
- 1
src/app/CircularShadow.cpp View File

@@ -10,7 +10,7 @@ CircularShadow::CircularShadow() {
}

void CircularShadow::draw(NVGcontext *vg) {
if (opacity < 0.0)
if (opacity <= 0.0)
return;

nvgBeginPath(vg);


Loading…
Cancel
Save