aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-09-25 04:26:11 +0200
committerdec05eba <dec05eba@protonmail.com>2022-09-25 04:26:11 +0200
commit02165e3d0ea57d42f1559099408d8bb1b8838ba4 (patch)
treeb2e397cf8ac8229672722fb2449470f2b74fd229 /src
parent1e9796838899302213de3fae7457a7c1aaea5be6 (diff)
Change window default size - Make it tall instead of wide
Diffstat (limited to 'src')
-rw-r--r--src/QuickMedia.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index 54a85de..beb3e84 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -300,7 +300,7 @@ namespace QuickMedia {
Program::Program() :
disp(nullptr),
- window_size(1280, 720),
+ window_size(1050, 1080),
current_page(PageType::EXIT),
image_index(0)
{
@@ -652,6 +652,9 @@ namespace QuickMedia {
if(strcmp(plugin_name, "download") == 0) {
window_size.x = std::min(900, monitor_size.x);
window_size.y = std::min(900, monitor_size.y);
+ } else {
+ window_size.x = std::min(window_size.x, monitor_size.x);
+ window_size.y = std::min(window_size.y, monitor_size.y);
}
mgl::Window::CreateParams window_create_params;