From 5c5a9beba50c34548ccf408723ec79e78c42b8c5 Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Sat, 12 Oct 2013 11:07:05 +0200 Subject: [PATCH] Rename CreateWindow() to CreateSDLWindow() CreateWindow() is a symbol internal to Windows. We can't use it in out code or it will collide. --- src/backends/sdl/refresh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backends/sdl/refresh.c b/src/backends/sdl/refresh.c index 9d9ed436..fb2507f2 100644 --- a/src/backends/sdl/refresh.c +++ b/src/backends/sdl/refresh.c @@ -315,7 +315,7 @@ static qboolean IsFullscreen() #endif } -static qboolean CreateWindow(int flags) +static qboolean CreateSDLWindow(int flags) { #if SDL_VERSION_ATLEAST(2, 0, 0) int windowPos = SDL_WINDOWPOS_UNDEFINED; @@ -562,7 +562,7 @@ GLimp_InitGraphics(qboolean fullscreen) while (1) { - if (!CreateWindow(flags)) + if (!CreateSDLWindow(flags)) { if (counter == 1) {