diff options
Diffstat (limited to 'plugingui')
-rw-r--r-- | plugingui/mainwindow.h | 4 | ||||
-rw-r--r-- | plugingui/testmain.cc | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/plugingui/mainwindow.h b/plugingui/mainwindow.h index ffd0566..219f851 100644 --- a/plugingui/mainwindow.h +++ b/plugingui/mainwindow.h @@ -44,6 +44,10 @@ class MainWindow : public Window { public: + + static constexpr std::size_t main_width{750}; + static constexpr std::size_t main_height{800}; + MainWindow(Settings& settings, void* native_window); ~MainWindow(); 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) |