From e92373740e15e2cc2b71e311131d82f70c38a71b Mon Sep 17 00:00:00 2001 From: Guillaume Damiand Date: Wed, 13 Jul 2022 10:15:50 +0200 Subject: [PATCH] Add constant for init size of window --- GraphicsView/include/CGAL/Qt/Basic_viewer_qt.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/GraphicsView/include/CGAL/Qt/Basic_viewer_qt.h b/GraphicsView/include/CGAL/Qt/Basic_viewer_qt.h index 46ab076cc7f..a3f5d85f983 100644 --- a/GraphicsView/include/CGAL/Qt/Basic_viewer_qt.h +++ b/GraphicsView/include/CGAL/Qt/Basic_viewer_qt.h @@ -54,8 +54,12 @@ #include #include +#define CGAL_BASIC_VIEWER_INIT_SIZE_X 500 +#define CGAL_BASIC_VIEWER_INIT_SIZE_Y 450 + namespace CGAL { + //------------------------------------------------------------------------------ inline CGAL::IO::Color get_random_color(CGAL::Random& random) { @@ -202,7 +206,7 @@ public: else setWindowTitle(title); - resize(500, 450); + resize(CGAL_BASIC_VIEWER_INIT_SIZE_X, CGAL_BASIC_VIEWER_INIT_SIZE_X); if (inverse_normal) { negate_all_normals(); }