diff options
author | TheMarlboroMan <marlborometal@gmail.com> | 2020-11-15 16:23:26 +0100 |
---|---|---|
committer | TheMarlboroMan <marlborometal@gmail.com> | 2020-11-15 16:23:26 +0100 |
commit | b0fa70c97c9b4886fb6e063664dc4d10daf12c1c (patch) | |
tree | bad875a8fa771783f9086afa4147f46cfe299671 /plugingui/testmain.cc | |
parent | 37e0c7ece76d2fdc23a42f87f9112ec1423dd988 (diff) |
Store size of main window centralized in mainwindow.h to reduce redundancy.
Diffstat (limited to 'plugingui/testmain.cc')
-rw-r--r-- | plugingui/testmain.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugingui/testmain.cc b/plugingui/testmain.cc index 1195ceb..3f73039 100644 --- a/plugingui/testmain.cc +++ b/plugingui/testmain.cc @@ -35,6 +35,7 @@ #include "window.h" #include "resource.h" #include "uitranslation.h" +#include "mainwindow.h" int main() { @@ -62,11 +63,10 @@ int main() #endif main_window.show(); - // TODO: automatically use drumgizmo_plugin.h size here #ifndef UI_PUGL - parent.resize(750, 713); + parent.resize(GUI::MainWindow::main_width, GUI::MainWindow::main_height); #else - main_window.resize(750, 713); + main_window.resize(GUI::MainWindow::main_width, GUI::MainWindow::main_height); #endif while(true) |