diff --git a/include/main.h b/include/main.h index ec05378..b5c0787 100644 --- a/include/main.h +++ b/include/main.h @@ -3,6 +3,9 @@ #include +#define WINDOW_WIDTH 1250 +#define WINDOW_HEIGHT 750 + typedef struct { int x, y, L, H; } Zone; diff --git a/src/main.c b/src/main.c index 610f120..7debb49 100644 --- a/src/main.c +++ b/src/main.c @@ -2,6 +2,8 @@ #include #include #include"../include/menu.h" +#define WINDOW_WIDTH 1250 +#define WINDOW_HEIGHT 750 typedef struct { int x, y, L, H; @@ -28,7 +30,7 @@ void dessinerzone(Zone z) { int main(void){ InitialiserGraphique(); - CreerFenetre(375,175,1250,750); + CreerFenetre(375,175,WINDOW_WIDTH,WINDOW_HEIGHT); menu();