AnalogTapeModel

Physical modelling signal processing for analog tape recording
Log | Files | Refs | Submodules | README | LICENSE

commit ef872ca696558decb175d6eeb1f805972ce6cc8a
parent 264842a0045efaf9b6cd9f94b9f8137321ff2b4b
Author: jatinchowdhury18 <jatinchowdhury18@gmail.com>
Date:   Sun, 26 Jun 2022 19:11:40 +0100

Default OpenGL to off (#277)


Diffstat:
MPlugin/Source/GUI/SettingsButton.cpp | 7+++----
MPlugin/Source/GUI/SettingsButton.h | 2+-
2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/Plugin/Source/GUI/SettingsButton.cpp b/Plugin/Source/GUI/SettingsButton.cpp @@ -10,8 +10,7 @@ SettingsButton::SettingsButton (const ChowtapeModelAudioProcessor& processor, ch proc (processor), openGLHelper (oglHelper) { - const auto shouldUseOpenGLByDefault = openGLHelper != nullptr && openGLHelper->isOpenGLAvailable(); - pluginSettings->addProperties ({ { openglID, shouldUseOpenGLByDefault } }, this); + pluginSettings->addProperties ({ { openglID, false } }, this); globalSettingChanged (openglID); auto cog = Drawable::createFromImageData (BinaryData::cogsolid_svg, BinaryData::cogsolid_svgSize); @@ -45,7 +44,7 @@ void SettingsButton::showSettingsMenu() { PopupMenu menu; - openGLManu (menu, 100); + openGLMenu (menu, 100); menu.addSeparator(); menu.addItem ("View Source Code", [=] { URL ("https://github.com/jatinchowdhury18/AnalogTapeModel").launchInDefaultBrowser(); }); @@ -77,7 +76,7 @@ void SettingsButton::showSettingsMenu() menu.showMenuAsync (options); } -void SettingsButton::openGLManu (PopupMenu& menu, int itemID) +void SettingsButton::openGLMenu (PopupMenu& menu, int itemID) { if (openGLHelper == nullptr || ! openGLHelper->isOpenGLAvailable()) return; diff --git a/Plugin/Source/GUI/SettingsButton.h b/Plugin/Source/GUI/SettingsButton.h @@ -15,7 +15,7 @@ public: private: void showSettingsMenu(); - void openGLManu (PopupMenu& menu, int itemID); + void openGLMenu (PopupMenu& menu, int itemID); void copyDiagnosticInfo(); const ChowtapeModelAudioProcessor& proc;