This website works better with JavaScript.
Home
Help
Sign In
VCVRack
/
Rack
mirror of
https://github.com/VCVRack/Rack.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
43
Wiki
Activity
Browse Source
Set relative alpha/tint instead of global in Svg::draw(), and ModuleWidget when bypassed.
tags/v2.0.0
Andrew Belt
3 years ago
parent
4fd20a17f5
commit
d44f7b1d81
2 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/app/ModuleWidget.cpp
+1
-1
src/svg.cpp
+ 1
- 1
src/app/ModuleWidget.cpp
View File
@@ -523,7 +523,7 @@ void ModuleWidget::draw(const DrawArgs& args) {
nvgScissor(args.vg, RECT_ARGS(args.clipBox));
if (module && module->isBypassed()) {
nvg
Global
Alpha(args.vg, 0.33);
nvgAlpha(args.vg, 0.33);
}
Widget::draw(args);
+ 1
- 1
src/svg.cpp
View File
@@ -176,7 +176,7 @@ void svgDraw(NVGcontext* vg, NSVGimage* svg) {
// Opacity
if (shape->opacity < 1.0)
nvg
Global
Alpha(vg, shape->opacity);
nvgAlpha(vg, shape->opacity);
// Build path
nvgBeginPath(vg);
Write
Preview
Loading…
Cancel
Save