summaryrefslogtreecommitdiff
path: root/plugin/drumgizmo_plugin.cc
diff options
context:
space:
mode:
authorTheMarlboroMan <marlborometal@gmail.com>2020-11-15 16:23:26 +0100
committerTheMarlboroMan <marlborometal@gmail.com>2020-11-15 16:23:26 +0100
commitb0fa70c97c9b4886fb6e063664dc4d10daf12c1c (patch)
treebad875a8fa771783f9086afa4147f46cfe299671 /plugin/drumgizmo_plugin.cc
parent37e0c7ece76d2fdc23a42f87f9112ec1423dd988 (diff)
Store size of main window centralized in mainwindow.h to reduce redundancy.
Diffstat (limited to 'plugin/drumgizmo_plugin.cc')
-rw-r--r--plugin/drumgizmo_plugin.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/drumgizmo_plugin.cc b/plugin/drumgizmo_plugin.cc
index a91606b..98299ee 100644
--- a/plugin/drumgizmo_plugin.cc
+++ b/plugin/drumgizmo_plugin.cc
@@ -65,7 +65,7 @@ DrumGizmoPlugin::DrumGizmoPlugin()
init();
drumgizmo = std::make_shared<DrumGizmo>(settings, output, input);
- resizeWindow(width, height);
+ resizeWindow(GUI::MainWindow::main_width, GUI::MainWindow::main_height);
drumgizmo->setFreeWheel(true);
drumgizmo->setSamplerate(44100);
drumgizmo->setFrameSize(2048);
@@ -317,7 +317,7 @@ bool DrumGizmoPlugin::hasGUI()
void* DrumGizmoPlugin::createWindow(void* parent)
{
plugin_gui = std::make_shared<GUI::MainWindow>(settings, parent);
- resizeWindow(width, height);
+ resizeWindow(GUI::MainWindow::main_width, GUI::MainWindow::main_height);
onShowWindow();
return plugin_gui->getNativeWindowHandle();