aboutsummaryrefslogtreecommitdiffstats
path: root/src/mdaSpecMeterGUI.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-08-12 02:22:02 +0000
committerDavid Robillard <d@drobilla.net>2008-08-12 02:22:02 +0000
commit2f7d4f902639750d8c0ca49bb15ed11a3d5cadd9 (patch)
treefefaf7756ef4a2008208eb810fe946da3a229fb7 /src/mdaSpecMeterGUI.cpp
parent91402dee76921409319de689c471e49afce8a490 (diff)
downloadmda.lv2-2f7d4f902639750d8c0ca49bb15ed11a3d5cadd9.tar.gz
mda.lv2-2f7d4f902639750d8c0ca49bb15ed11a3d5cadd9.tar.bz2
mda.lv2-2f7d4f902639750d8c0ca49bb15ed11a3d5cadd9.zip
Move CBitmap interface closer to motif port for easier porting.
git-svn-id: http://svn.drobilla.net/lad/mda-lv2@1342 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/mdaSpecMeterGUI.cpp')
-rw-r--r--src/mdaSpecMeterGUI.cpp13
1 files changed, 6 insertions, 7 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);