Add constant for init size of window

This commit is contained in:
Guillaume Damiand 2022-07-13 10:15:50 +02:00
parent 1d9280afae
commit e92373740e
1 changed files with 5 additions and 1 deletions

View File

@ -54,8 +54,12 @@
#include <CGAL/Random.h> #include <CGAL/Random.h>
#include <CGAL/assertions.h> #include <CGAL/assertions.h>
#define CGAL_BASIC_VIEWER_INIT_SIZE_X 500
#define CGAL_BASIC_VIEWER_INIT_SIZE_Y 450
namespace CGAL namespace CGAL
{ {
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
inline CGAL::IO::Color get_random_color(CGAL::Random& random) inline CGAL::IO::Color get_random_color(CGAL::Random& random)
{ {
@ -202,7 +206,7 @@ public:
else else
setWindowTitle(title); setWindowTitle(title);
resize(500, 450); resize(CGAL_BASIC_VIEWER_INIT_SIZE_X, CGAL_BASIC_VIEWER_INIT_SIZE_X);
if (inverse_normal) if (inverse_normal)
{ negate_all_normals(); } { negate_all_normals(); }