1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-02 17:09:26 +02:00

Make EXPERIMENTAL_EFFECTS_RACK compilable

This commit is contained in:
Paul Licameli 2019-02-11 19:49:29 -05:00
parent b4113aae35
commit 30c4ca70ee
3 changed files with 5 additions and 4 deletions

View File

@ -37,6 +37,7 @@
#include "EffectManager.h" #include "EffectManager.h"
#include "EffectRack.h" #include "EffectRack.h"
#include "../commands/CommandContext.h" #include "../commands/CommandContext.h"
#include "../Menus.h"
#include "../Prefs.h" #include "../Prefs.h"
#include "../Project.h" #include "../Project.h"
@ -394,7 +395,7 @@ void EffectRack::OnDown(wxCommandEvent & evt)
evt.Skip(); evt.Skip();
size_t index = GetEffectIndex(btn); int index = GetEffectIndex(btn);
if (index < 0 || index == (mMainSizer->GetChildren().GetCount() / NUMCOLS) - 1) if (index < 0 || index == (mMainSizer->GetChildren().GetCount() / NUMCOLS) - 1)
{ {
return; return;
@ -459,7 +460,7 @@ void EffectRack::OnRemove(wxCommandEvent & evt)
UpdateActive(); UpdateActive();
} }
wxBitmap EffectRack::CreateBitmap(const char *xpm[], bool up, bool pusher) wxBitmap EffectRack::CreateBitmap(const char *const xpm[], bool up, bool pusher)
{ {
wxMemoryDC dc; wxMemoryDC dc;
wxBitmap pic(xpm); wxBitmap pic(xpm);

View File

@ -40,7 +40,7 @@ public:
private: private:
wxBitmap CreateBitmap(const char *xpm[], bool up, bool pusher); wxBitmap CreateBitmap(const char *const xpm[], bool up, bool pusher);
int GetEffectIndex(wxWindow *win); int GetEffectIndex(wxWindow *win);
void MoveRowUp(int row); void MoveRowUp(int row);
void UpdateActive(); void UpdateActive();

View File

@ -364,7 +364,7 @@ void OnShowClipping(const CommandContext &context)
} }
#if defined(EXPERIMENTAL_EFFECTS_RACK) #if defined(EXPERIMENTAL_EFFECTS_RACK)
void OnShowEffectsRack(const &WXUNUSED(context) ) void OnShowEffectsRack(const CommandContext &WXUNUSED(context) )
{ {
EffectManager::Get().ShowRack(); EffectManager::Get().ShowRack();
} }