Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
baconpaul committed Jul 29, 2024
1 parent fca0560 commit 7591a23
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
os: ${{ runner.os }}

- name: VSGTUI Extras for Linux
if: ${{ runner.os }} == "Linux"
if: runner.os == 'Linux'
run: |
sudo apt-get install -u libxcb-util-dev
Expand Down
6 changes: 4 additions & 2 deletions src/clap-saw-demo-editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ bool ClapSawDemo::guiIsApiSupported(const char *api, bool isFloating) noexcept
#endif

#if IS_LINUX
if (_host.canUseTimerSupport() && _host.canUsePosixFdSupport() && strcmp(api, CLAP_WINDOW_API_X11) == 0)
if (_host.canUseTimerSupport() && _host.canUsePosixFdSupport() &&
strcmp(api, CLAP_WINDOW_API_X11) == 0)
return true;
#endif

Expand Down Expand Up @@ -308,7 +309,8 @@ void ClapSawDemoEditor::setupUI()
frame->addView(repoLabel);

auto sl = std::string("MIT License; CLAP v.") + std::to_string(CLAP_VERSION_MAJOR) + "." +
std::to_string(CLAP_VERSION_MINOR) + "." + std::to_string(CLAP_VERSION_REVISION) + "; Built: " + __DATE__ + " @ " + __TIME__;
std::to_string(CLAP_VERSION_MINOR) + "." + std::to_string(CLAP_VERSION_REVISION) +
"; Built: " + __DATE__ + " @ " + __TIME__;
l = new VSTGUI::CTextLabel(
VSTGUI::CRect(VSTGUI::CPoint(0, getFrame()->getHeight() - applyUIScale(20)),
VSTGUI::CPoint(getFrame()->getWidth(), applyUIScale(20))),
Expand Down
4 changes: 2 additions & 2 deletions src/clap-saw-demo-editor.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ struct ClapSawDemoEditor : public VSTGUI::VSTGUIEditorInterface, public VSTGUI::
uint32_t lastDataUpdate{0};
ClapSawDemoBackground *backgroundRender{nullptr};
// These are all weak references owned by the frame
VSTGUI::CTextLabel *topLabel{nullptr}, *repoLabel{nullptr},
*bottomLabel{nullptr}, *statusLabel{nullptr};
VSTGUI::CTextLabel *topLabel{nullptr}, *repoLabel{nullptr}, *bottomLabel{nullptr},
*statusLabel{nullptr};

VSTGUI::CTextLabel *ampLabel{nullptr};
VSTGUI::CCheckBox *ampToggle{nullptr};
Expand Down
5 changes: 4 additions & 1 deletion src/clap-saw-demo-pluginentry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ const CLAP_EXPORT struct clap_plugin_factory clap_saw_demo_factory = {
sst::clap_saw_demo::pluginentry::clap_get_plugin_descriptor,
sst::clap_saw_demo::pluginentry::clap_create_plugin,
};
static const void *get_factory(const char *factory_id) { return (!strcmp(factory_id,CLAP_PLUGIN_FACTORY_ID)) ? &clap_saw_demo_factory : nullptr; }
static const void *get_factory(const char *factory_id)
{
return (!strcmp(factory_id, CLAP_PLUGIN_FACTORY_ID)) ? &clap_saw_demo_factory : nullptr;
}

// clap_init and clap_deinit are required to be fast, but we have nothing we need to do here
bool clap_init(const char *p) { return true; }
Expand Down

0 comments on commit 7591a23

Please sign in to comment.