aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mdaSpecMeterGUI.cpp13
-rw-r--r--src/mdaSpecMeterGUI.h2
2 files changed, 7 insertions, 8 deletions
diff --git a/src/mdaSpecMeterGUI.cpp b/src/mdaSpecMeterGUI.cpp
index d36622d..81ca615 100644
--- a/src/mdaSpecMeterGUI.cpp
+++ b/src/mdaSpecMeterGUI.cpp
@@ -9,10 +9,15 @@
#include <math.h>
+CResTable pngResources = { { 128, "mdaSpecMeter.png" } };
+
mdaSpecMeterGUI::mdaSpecMeterGUI(AudioEffect * effect)
: AEffGUIEditor(effect)
, background(NULL)
{
+ background = new CBitmap(128);
+ rect.right = (LvzInt16) background->getWidth();
+ rect.bottom = (LvzInt16) background->getHeight();
}
@@ -22,15 +27,9 @@ mdaSpecMeterGUI::~mdaSpecMeterGUI()
}
-bool
+long
mdaSpecMeterGUI::open(void *ptr)
{
- if (background == NULL) {
- background = new CBitmap(*this, "mdaSpecMeter.png");
- rect.right = (LvzInt16) background->getWidth();
- rect.bottom = (LvzInt16) background->getHeight();
- }
-
AEffGUIEditor::open(ptr);
CPoint offs(0, 0);
diff --git a/src/mdaSpecMeterGUI.h b/src/mdaSpecMeterGUI.h
index 263a20b..99a71f7 100644
--- a/src/mdaSpecMeterGUI.h
+++ b/src/mdaSpecMeterGUI.h
@@ -28,7 +28,7 @@ public:
mdaSpecMeterGUI(AudioEffect* effect);
~mdaSpecMeterGUI();
- bool open(void* ptr);
+ long open(void* ptr);
void idle();
void close();