summaryrefslogtreecommitdiff
path: root/plugins/ZamCompX2
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ZamCompX2')
-rw-r--r--plugins/ZamCompX2/ZamCompX2Plugin.cpp18
-rw-r--r--plugins/ZamCompX2/ZamCompX2UI.cpp15
2 files changed, 17 insertions, 16 deletions
diff --git a/plugins/ZamCompX2/ZamCompX2Plugin.cpp b/plugins/ZamCompX2/ZamCompX2Plugin.cpp
index 87824ba..c9203bd 100644
--- a/plugins/ZamCompX2/ZamCompX2Plugin.cpp
+++ b/plugins/ZamCompX2/ZamCompX2Plugin.cpp
@@ -36,7 +36,7 @@ void ZamCompX2Plugin::initParameter(uint32_t index, Parameter& parameter)
switch (index)
{
case paramAttack:
- parameter.hints = kParameterIsAutomable;
+ parameter.hints = kParameterIsAutomatable;
parameter.name = "Attack";
parameter.symbol = "att";
parameter.unit = "ms";
@@ -45,7 +45,7 @@ void ZamCompX2Plugin::initParameter(uint32_t index, Parameter& parameter)
parameter.ranges.max = 100.0f;
break;
case paramRelease:
- parameter.hints = kParameterIsAutomable;
+ parameter.hints = kParameterIsAutomatable;
parameter.name = "Release";
parameter.symbol = "rel";
parameter.unit = "ms";
@@ -54,7 +54,7 @@ void ZamCompX2Plugin::initParameter(uint32_t index, Parameter& parameter)
parameter.ranges.max = 500.0f;
break;
case paramKnee:
- parameter.hints = kParameterIsAutomable;
+ parameter.hints = kParameterIsAutomatable;
parameter.name = "Knee";
parameter.symbol = "kn";
parameter.unit = "dB";
@@ -63,7 +63,7 @@ void ZamCompX2Plugin::initParameter(uint32_t index, Parameter& parameter)
parameter.ranges.max = 8.0f;
break;
case paramRatio:
- parameter.hints = kParameterIsAutomable | kParameterIsLogarithmic;
+ parameter.hints = kParameterIsAutomatable | kParameterIsLogarithmic;
parameter.name = "Ratio";
parameter.symbol = "rat";
parameter.unit = " ";
@@ -72,7 +72,7 @@ void ZamCompX2Plugin::initParameter(uint32_t index, Parameter& parameter)
parameter.ranges.max = 20.0f;
break;
case paramThresh:
- parameter.hints = kParameterIsAutomable;
+ parameter.hints = kParameterIsAutomatable;
parameter.name = "Threshold";
parameter.symbol = "thr";
parameter.unit = "dB";
@@ -81,7 +81,7 @@ void ZamCompX2Plugin::initParameter(uint32_t index, Parameter& parameter)
parameter.ranges.max = 0.0f;
break;
case paramMakeup:
- parameter.hints = kParameterIsAutomable;
+ parameter.hints = kParameterIsAutomatable;
parameter.name = "Makeup";
parameter.symbol = "mak";
parameter.unit = "dB";
@@ -90,7 +90,7 @@ void ZamCompX2Plugin::initParameter(uint32_t index, Parameter& parameter)
parameter.ranges.max = 30.0f;
break;
case paramSlew:
- parameter.hints = kParameterIsAutomable;
+ parameter.hints = kParameterIsAutomatable;
parameter.name = "Slew";
parameter.symbol = "slew";
parameter.unit = " ";
@@ -99,7 +99,7 @@ void ZamCompX2Plugin::initParameter(uint32_t index, Parameter& parameter)
parameter.ranges.max = 150.0f;
break;
case paramSidechain:
- parameter.hints = kParameterIsAutomable | kParameterIsBoolean;
+ parameter.hints = kParameterIsAutomatable | kParameterIsBoolean;
parameter.name = "Sidechain";
parameter.symbol = "sidechain";
parameter.unit = " ";
@@ -108,7 +108,7 @@ void ZamCompX2Plugin::initParameter(uint32_t index, Parameter& parameter)
parameter.ranges.max = 1.0f;
break;
case paramStereo:
- parameter.hints = kParameterIsAutomable | kParameterIsBoolean;
+ parameter.hints = kParameterIsAutomatable | kParameterIsBoolean;
parameter.name = "Stereo Detection";
parameter.symbol = "stereodet";
parameter.unit = " ";
diff --git a/plugins/ZamCompX2/ZamCompX2UI.cpp b/plugins/ZamCompX2/ZamCompX2UI.cpp
index c5b6797..d0b5f14 100644
--- a/plugins/ZamCompX2/ZamCompX2UI.cpp
+++ b/plugins/ZamCompX2/ZamCompX2UI.cpp
@@ -30,7 +30,7 @@ ZamCompX2UI::ZamCompX2UI()
setSize(ZamCompX2Artwork::zamcompx2Width, ZamCompX2Artwork::zamcompx2Height);
// background
- fImgBackground = Image(ZamCompX2Artwork::zamcompx2Data, ZamCompX2Artwork::zamcompx2Width, ZamCompX2Artwork::zamcompx2Height, GL_BGR);
+ fImgBackground = Image(ZamCompX2Artwork::zamcompx2Data, ZamCompX2Artwork::zamcompx2Width, ZamCompX2Artwork::zamcompx2Height, kImageFormatBGR);
// led images
fLedRedImg = Image(ZamCompX2Artwork::ledredData, ZamCompX2Artwork::ledredWidth, ZamCompX2Artwork::ledredHeight);
@@ -249,7 +249,8 @@ void ZamCompX2UI::imageSwitchClicked(ImageSwitch* tog, bool down)
void ZamCompX2UI::onDisplay()
{
- fImgBackground.draw();
+ const GraphicsContext& context(getGraphicsContext());
+ fImgBackground.draw(context);
// draw leds
static const float sLedSpacing = 15.5f;
@@ -287,8 +288,8 @@ void ZamCompX2UI::onDisplay()
numRedLeds = 1;
else numRedLeds = 0;
- for (int i=numRedLeds; i>0; --i)
- fLedRedImg.drawAt(sLedInitialX + (12 - i)*sLedSpacing, sRedLedStaticY);
+ for (int i=numRedLeds; i>0; --i)
+ fLedRedImg.drawAt(context, sLedInitialX + (12 - i)*sLedSpacing, sRedLedStaticY);
if (fLedYellowValue >= 20.f)
numYellowLeds = 19;
@@ -332,12 +333,12 @@ void ZamCompX2UI::onDisplay()
if (numYellowLeds > 12) {
for (int i=12; i<numYellowLeds; ++i)
- fLedRedImg.drawAt(sLedInitialX + i*sLedSpacing, sYellowLedStaticY);
+ fLedRedImg.drawAt(context, sLedInitialX + i*sLedSpacing, sYellowLedStaticY);
for (int i=0; i<12; ++i)
- fLedYellowImg.drawAt(sLedInitialX + i*sLedSpacing, sYellowLedStaticY);
+ fLedYellowImg.drawAt(context, sLedInitialX + i*sLedSpacing, sYellowLedStaticY);
} else {
for (int i=0; i<numYellowLeds; ++i)
- fLedYellowImg.drawAt(sLedInitialX + i*sLedSpacing, sYellowLedStaticY);
+ fLedYellowImg.drawAt(context, sLedInitialX + i*sLedSpacing, sYellowLedStaticY);
}
}