| 104 | void Blend2d::clear() { mLayers.clear(); } |
| 105 | |
| 106 | bool Blend2d::setParams(Fx2dPtr fx, const Params &p) { |
| 107 | u8 blur_amount = p.blur_amount; |
| 108 | u8 blur_passes = p.blur_passes; |
| 109 | for (auto &layer : mLayers) { |
| 110 | if (layer.fx == fx) { |
| 111 | layer.blur_amount = blur_amount; |
| 112 | layer.blur_passes = blur_passes; |
| 113 | return true; |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | FL_WARN("Fx2d not found in Blend2d::setBlurParams"); |
| 118 | return false; |
| 119 | } |
| 120 | |
| 121 | bool Blend2d::setParams(Fx2d &fx, const Params &p) { |
| 122 |
no test coverage detected