Browse Source

Fix coding style indentation

Signed-off-by: falkTX <falktx@falktx.com>
tags/2020-12-27
falkTX 4 years ago
parent
commit
2cdf88b69e
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 13 additions and 11 deletions
  1. +13
    -11
      libs/juce-legacy/source/modules/juce_audio_plugin_client/LV2/juce_LV2_Wrapper.cpp

+ 13
- 11
libs/juce-legacy/source/modules/juce_audio_plugin_client/LV2/juce_LV2_Wrapper.cpp View File

@@ -359,11 +359,11 @@ public:
const int cw = child->getWidth(); const int cw = child->getWidth();
const int ch = child->getHeight(); const int ch = child->getHeight();


#if JUCE_LINUX
#if JUCE_LINUX
XResizeWindow (display.display, (Window) getWindowHandle(), cw, ch); XResizeWindow (display.display, (Window) getWindowHandle(), cw, ch);
#else
#else
setSize (cw, ch); setSize (cw, ch);
#endif
#endif


if (uiResize != nullptr) if (uiResize != nullptr)
uiResize->ui_resize (uiResize->handle, cw, ch); uiResize->ui_resize (uiResize->handle, cw, ch);
@@ -380,9 +380,9 @@ public:
private: private:
//============================================================================== //==============================================================================
const LV2UI_Resize* uiResize; const LV2UI_Resize* uiResize;
#if JUCE_LINUX
#if JUCE_LINUX
ScopedXDisplay display; ScopedXDisplay display;
#endif
#endif


JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (JuceLv2ParentContainer); JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (JuceLv2ParentContainer);
}; };
@@ -783,11 +783,11 @@ private:


parentContainer->addToDesktop (0, parent); parentContainer->addToDesktop (0, parent);


#if JUCE_LINUX
#if JUCE_LINUX
Window hostWindow = (Window) parent; Window hostWindow = (Window) parent;
Window editorWnd = (Window) parentContainer->getWindowHandle(); Window editorWnd = (Window) parentContainer->getWindowHandle();
XReparentWindow (display.display, editorWnd, hostWindow, 0, 0); XReparentWindow (display.display, editorWnd, hostWindow, 0, 0);
#endif
#endif


parentContainer->reset (uiResize); parentContainer->reset (uiResize);
parentContainer->setVisible (true); parentContainer->setVisible (true);
@@ -1712,6 +1712,7 @@ static void juceLV2_selectProgram (LV2_Handle handle, uint32_t bank, uint32_t pr
handlePtr->lv2SelectProgram(bank, program); handlePtr->lv2SelectProgram(bank, program);
} }


#if JucePlugin_WantsLV2State
static LV2_State_Status juceLV2_SaveState (LV2_Handle handle, LV2_State_Store_Function store, LV2_State_Handle stateHandle, static LV2_State_Status juceLV2_SaveState (LV2_Handle handle, LV2_State_Store_Function store, LV2_State_Handle stateHandle,
uint32_t, const LV2_Feature* const*) uint32_t, const LV2_Feature* const*)
{ {
@@ -1723,6 +1724,7 @@ static LV2_State_Status juceLV2_RestoreState (LV2_Handle handle, LV2_State_Retri
{ {
return handlePtr->lv2RestoreState(retrieve, stateHandle, flags); return handlePtr->lv2RestoreState(retrieve, stateHandle, flags);
} }
#endif


#undef handlePtr #undef handlePtr


@@ -1730,18 +1732,18 @@ static const void* juceLV2_ExtensionData (const char* uri)
{ {
static const LV2_Options_Interface options = { juceLV2_getOptions, juceLV2_setOptions }; static const LV2_Options_Interface options = { juceLV2_getOptions, juceLV2_setOptions };
static const LV2_Programs_Interface programs = { juceLV2_getProgram, juceLV2_selectProgram }; static const LV2_Programs_Interface programs = { juceLV2_getProgram, juceLV2_selectProgram };
#if JucePlugin_WantsLV2State
#if JucePlugin_WantsLV2State
static const LV2_State_Interface state = { juceLV2_SaveState, juceLV2_RestoreState }; static const LV2_State_Interface state = { juceLV2_SaveState, juceLV2_RestoreState };
#endif
#endif


if (strcmp(uri, LV2_OPTIONS__interface) == 0) if (strcmp(uri, LV2_OPTIONS__interface) == 0)
return &options; return &options;
if (strcmp(uri, LV2_PROGRAMS__Interface) == 0) if (strcmp(uri, LV2_PROGRAMS__Interface) == 0)
return &programs; return &programs;
#if JucePlugin_WantsLV2State
#if JucePlugin_WantsLV2State
if (strcmp(uri, LV2_STATE__interface) == 0) if (strcmp(uri, LV2_STATE__interface) == 0)
return &state; return &state;
#endif
#endif


return nullptr; return nullptr;
} }


Loading…
Cancel
Save