From 7bdb57f4ded1f6a344648bc21be7ffcea8722f9e Mon Sep 17 00:00:00 2001 From: Mischa Spiegelmock Date: Sun, 8 Apr 2018 13:04:52 -0700 Subject: [PATCH] use version macro --- src/projectM-sdl/projectM_SDL_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/projectM-sdl/projectM_SDL_main.cpp b/src/projectM-sdl/projectM_SDL_main.cpp index c4157c4c6..ad506eb47 100644 --- a/src/projectM-sdl/projectM_SDL_main.cpp +++ b/src/projectM-sdl/projectM_SDL_main.cpp @@ -41,7 +41,7 @@ int main(int argc, char *argv[]) { // default window size to usable bounds (e.g. minus menubar and dock) SDL_Rect initialWindowBounds; -#ifdef SDL_GetDisplayUsableBounds +#if SDL_VERSION_ATLEAST(2, 0, 5) // new and better SDL_GetDisplayUsableBounds(0, &initialWindowBounds); #else