# HG changeset patch # User reimar # Date 1337535498 0 # Node ID ec5d1147164e031c225336890c251d49cfa595dc # Parent a31ac47eba3945e143f4a79ff4afd12a7bfc5290 Change if() condition into #if. This avoids compile issues with some older SDL versions. diff -r a31ac47eba39 -r ec5d1147164e libvo/sdl_common.c --- a/libvo/sdl_common.c Sun May 20 16:09:56 2012 +0000 +++ b/libvo/sdl_common.c Sun May 20 17:38:18 2012 +0000 @@ -45,12 +45,13 @@ static void get_screensize(void) { const SDL_VideoInfo *vi; // TODO: better to use a check that gets the runtime version instead? - if (!SDL_VERSION_ATLEAST(1, 2, 10)) return; +#if SDL_VERSION_ATLEAST(1, 2, 10) // Keep user-provided settings if (vo_screenwidth > 0 || vo_screenheight > 0) return; vi = SDL_GetVideoInfo(); vo_screenwidth = vi->current_w; vo_screenheight = vi->current_h; +#endif } int vo_sdl_init(void)