diff options
author | André Nusser <andre.nusser@googlemail.com> | 2017-04-17 13:29:18 +0200 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2017-04-17 13:29:18 +0200 |
commit | 20c62f8cc12c86734d63c654d2fceb80d762e010 (patch) | |
tree | f5cd653b4b2c6f072f05ac7995a7fe0b39afd7a0 /plugin | |
parent | 041999e9012b71c357ff2d65b47e9d413467e15b (diff) |
Fix the size for the plugins.
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/drumgizmo_plugin.cc | 4 | ||||
-rw-r--r-- | plugin/drumgizmo_plugin.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/plugin/drumgizmo_plugin.cc b/plugin/drumgizmo_plugin.cc index 075724c..b1ad17c 100644 --- a/plugin/drumgizmo_plugin.cc +++ b/plugin/drumgizmo_plugin.cc @@ -63,7 +63,7 @@ DrumGizmoPlugin::DrumGizmoPlugin() init(); drumgizmo = std::make_shared<DrumGizmo>(settings, output, input); - resizeWindow(750, 400); + resizeWindow(width, height); drumgizmo->setFreeWheel(true); drumgizmo->setSamplerate(44100); drumgizmo->setFrameSize(2048); @@ -262,7 +262,7 @@ bool DrumGizmoPlugin::hasGUI() void DrumGizmoPlugin::createWindow(void *parent) { plugin_gui = std::make_shared<GUI::MainWindow>(settings, parent); - resizeWindow(750, 480); + resizeWindow(width, height); onShowWindow(); } diff --git a/plugin/drumgizmo_plugin.h b/plugin/drumgizmo_plugin.h index 3662d5f..db94e6c 100644 --- a/plugin/drumgizmo_plugin.h +++ b/plugin/drumgizmo_plugin.h @@ -202,4 +202,7 @@ private: std::shared_ptr<GUI::MainWindow> plugin_gui; std::shared_ptr<DrumGizmo> drumgizmo; std::uint32_t inlineDisplayBuffer[1024*1024]; + + static constexpr std::size_t width{750}; + static constexpr std::size_t height{400}; }; |