From a17dcfdcba9f7da5a91c554eef88cea73d6598b0 Mon Sep 17 00:00:00 2001 From: Jacob McDonnell Date: Sun, 14 Jul 2024 13:04:54 -0400 Subject: Redid the Cmake Config and fell back to C17 --- screen.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'screen.h') diff --git a/screen.h b/screen.h index e7b4fa4..e839efd 100644 --- a/screen.h +++ b/screen.h @@ -1,10 +1,11 @@ #ifndef SCREEN_H #define SCREEN_H + #include #include "pong.h" -constexpr int SCREEN_WIDTH = 640; -constexpr int SCREEN_HEIGHT = 480; +#define SCREEN_WIDTH 640 +#define SCREEN_HEIGHT 480 extern SDL_Window *gWindow; extern SDL_Surface *gScreenSurface; @@ -12,8 +13,8 @@ extern SDL_Surface *ballSurface; extern SDL_Surface *leftPaddleSurface; extern SDL_Surface *rightPaddleSurface; -bool InitScreen ( void ); -void Close ( void ); -void Draw ( const struct moveable_t m, SDL_Surface * const surface ); +bool InitScreen(void); +void Close(void); +void Draw(const struct moveable_t m, SDL_Surface * const surface); #endif //SCREEN_H -- cgit v1.2.3