From 13a5229a874ff2431c6e9877e09a4718be4c7bc6 Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Wed, 4 Oct 2017 07:01:03 +0200 Subject: [PATCH] Use a screen factor of 4/3 to compute the width --- src/def.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/def.h b/src/def.h index f8d2440..d14090f 100644 --- a/src/def.h +++ b/src/def.h @@ -25,13 +25,13 @@ // clang-format off #define _INTRO true // true si images d'introduction - -#define LXIMAGE 640 // dimensions de la fenĂȘtre de jeu +#define SCRFACTOR 4 / 3 +#define LXIMAGE (480 * SCRFACTOR + (480 * SCRFACTOR) % 2) // dimensions de la fenĂȘtre de jeu #define LYIMAGE 480 #define POSDRAWX 144 // surface de dessin #define POSDRAWY 15 -#define DIMDRAWX 480 +#define DIMDRAWX (LXIMAGE - (640 - 480)) #define DIMDRAWY 450 #define POSMAPX 8 // surface pour la carte