From 65bc5ef6f4edd6368c700657f580a6a6c0f3840f Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 24 Aug 2024 19:06:42 +0300 Subject: [PATCH] define default size --- src/app/browser.cpp | 4 ++-- src/app/browser.hpp | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app/browser.cpp b/src/app/browser.cpp index 597ba463..dccfab5f 100644 --- a/src/app/browser.cpp +++ b/src/app/browser.cpp @@ -14,8 +14,8 @@ Browser::Browser( ); set_default_size( - 640, - 480 + WIDTH, + HEIGHT ); // Init header widget diff --git a/src/app/browser.hpp b/src/app/browser.hpp index 5c0b9122..97b8cf94 100644 --- a/src/app/browser.hpp +++ b/src/app/browser.hpp @@ -22,6 +22,9 @@ namespace app app::browser::Header * header; app::browser::Main * main; + const int WIDTH = 640; + const int HEIGHT = 480; + public: Browser(