From 873c57cb1380927560c549628ff79d3bab8d8ede Mon Sep 17 00:00:00 2001 From: Derek Stevens Date: Wed, 9 Jan 2019 21:32:25 -0800 Subject: [PATCH] internal screen dimensions as enum in extern.h, instead of #defines in config.h --- config.h | 7 +------ extern.h | 6 ++++++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/config.h b/config.h index 5cfb12b..471e496 100644 --- a/config.h +++ b/config.h @@ -11,12 +11,7 @@ #define FS_BUTTON SDLK_f #define PAUSE_BUTTON SDLK_q - -// internal game resolution is 320x180 widescreen -#define SCREEN_WIDTH 320 -#define SCREEN_HEIGHT 180 - -// video scaling factor should be a positive integer +/* video scaling factor should be a positive integer */ #define SCALE_FACTOR 2 //#define SOUND_ON diff --git a/extern.h b/extern.h index a72e8ac..633ae9c 100644 --- a/extern.h +++ b/extern.h @@ -1,4 +1,10 @@ +enum screenDimensions +{ + SCREEN_WIDTH = 320, + SCREEN_HEIGHT = 180 +}; + extern int fullscreen; extern int quit; extern int playing;