From 20c62f8cc12c86734d63c654d2fceb80d762e010 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Mon, 17 Apr 2017 13:29:18 +0200 Subject: Fix the size for the plugins. --- plugin/drumgizmo_plugin.cc | 4 ++-- plugin/drumgizmo_plugin.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'plugin') 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(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(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 plugin_gui; std::shared_ptr drumgizmo; std::uint32_t inlineDisplayBuffer[1024*1024]; + + static constexpr std::size_t width{750}; + static constexpr std::size_t height{400}; }; -- cgit v1.2.3