From 209dff689b0ad5384a4e681d0f324064dc776ea7 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Sun, 3 Feb 2019 15:50:12 -0500 Subject: [PATCH] Update to Rack v1 API --- src/ABC.cpp | 2 +- src/Befaco.hpp | 2 +- src/DualAtenuverter.cpp | 2 +- src/EvenVCO.cpp | 2 +- src/Mixer.cpp | 2 +- src/Rampage.cpp | 2 +- src/SlewLimiter.cpp | 2 +- src/SpringReverb.cpp | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/ABC.cpp b/src/ABC.cpp index 588c613..eecae39 100644 --- a/src/ABC.cpp +++ b/src/ABC.cpp @@ -80,7 +80,7 @@ struct ABC : Module { struct ABCWidget : ModuleWidget { ABCWidget(ABC *module) { setModule(module); - setPanel(SVG::load(asset::plugin(pluginInstance, "res/ABC.svg"))); + setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/ABC.svg"))); addChild(createWidget(Vec(15, 0))); addChild(createWidget(Vec(15, 365))); diff --git a/src/Befaco.hpp b/src/Befaco.hpp index 6f84679..4169ac5 100644 --- a/src/Befaco.hpp +++ b/src/Befaco.hpp @@ -18,7 +18,7 @@ extern Model *modelDualAtenuverter; struct Knurlie : SVGScrew { Knurlie() { - sw->svg = SVG::load(asset::plugin(pluginInstance, "res/Knurlie.svg")); + sw->svg = APP->window->loadSvg(asset::plugin(pluginInstance, "res/Knurlie.svg")); sw->wrap(); box.size = sw->box.size; } diff --git a/src/DualAtenuverter.cpp b/src/DualAtenuverter.cpp index 9053b33..5ef4c4c 100644 --- a/src/DualAtenuverter.cpp +++ b/src/DualAtenuverter.cpp @@ -54,7 +54,7 @@ struct DualAtenuverter : Module { struct DualAtenuverterWidget : ModuleWidget { DualAtenuverterWidget(DualAtenuverter *module) { setModule(module); - setPanel(SVG::load(asset::plugin(pluginInstance, "res/DualAtenuverter.svg"))); + setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/DualAtenuverter.svg"))); addChild(createWidget(Vec(15, 0))); addChild(createWidget(Vec(15, 365))); diff --git a/src/EvenVCO.cpp b/src/EvenVCO.cpp index 2f5c603..db69687 100644 --- a/src/EvenVCO.cpp +++ b/src/EvenVCO.cpp @@ -120,7 +120,7 @@ struct EvenVCO : Module { struct EvenVCOWidget : ModuleWidget { EvenVCOWidget(EvenVCO *module) { setModule(module); - setPanel(SVG::load(asset::plugin(pluginInstance, "res/EvenVCO.svg"))); + setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/EvenVCO.svg"))); addChild(createWidget(Vec(15, 0))); addChild(createWidget(Vec(15, 365))); diff --git a/src/Mixer.cpp b/src/Mixer.cpp index 41dfdca..d383f9d 100644 --- a/src/Mixer.cpp +++ b/src/Mixer.cpp @@ -55,7 +55,7 @@ struct Mixer : Module { struct MixerWidget : ModuleWidget { MixerWidget(Mixer *module) { setModule(module); - setPanel(SVG::load(asset::plugin(pluginInstance, "res/Mixer.svg"))); + setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/Mixer.svg"))); addChild(createWidget(Vec(15, 0))); addChild(createWidget(Vec(15, 365))); diff --git a/src/Rampage.cpp b/src/Rampage.cpp index fda9ace..d8d900c 100644 --- a/src/Rampage.cpp +++ b/src/Rampage.cpp @@ -186,7 +186,7 @@ struct Rampage : Module { struct RampageWidget : ModuleWidget { RampageWidget(Rampage *module) { setModule(module); - setPanel(SVG::load(asset::plugin(pluginInstance, "res/Rampage.svg"))); + setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/Rampage.svg"))); addChild(createWidget(Vec(15, 0))); addChild(createWidget(Vec(box.size.x-30, 0))); diff --git a/src/SlewLimiter.cpp b/src/SlewLimiter.cpp index 8067ae4..8785abc 100644 --- a/src/SlewLimiter.cpp +++ b/src/SlewLimiter.cpp @@ -63,7 +63,7 @@ struct SlewLimiter : Module { struct SlewLimiterWidget : ModuleWidget { SlewLimiterWidget(::SlewLimiter *module) { setModule(module); - setPanel(SVG::load(asset::plugin(pluginInstance, "res/SlewLimiter.svg"))); + setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/SlewLimiter.svg"))); addChild(createWidget(Vec(15, 0))); addChild(createWidget(Vec(15, 365))); diff --git a/src/SpringReverb.cpp b/src/SpringReverb.cpp index 0c6379a..35c75fc 100644 --- a/src/SpringReverb.cpp +++ b/src/SpringReverb.cpp @@ -141,7 +141,7 @@ struct SpringReverb : Module { struct SpringReverbWidget : ModuleWidget { SpringReverbWidget(SpringReverb *module) { setModule(module); - setPanel(SVG::load(asset::plugin(pluginInstance, "res/SpringReverb.svg"))); + setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/SpringReverb.svg"))); addChild(createWidget(Vec(15, 0))); addChild(createWidget(Vec(15, 365)));