diff options
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r-- | src/graphicsmanager.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index e43f701b3..16375b8a4 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -1,9 +1,9 @@ /* - * The ManaPlus Client + * The ManaVerse Client * Copyright (C) 2012-2020 The ManaPlus Developers - * Copyright (C) 2020-2023 The ManaVerse Developers + * Copyright (C) 2020-2025 The ManaVerse Developers * - * This file is part of The ManaPlus Client. + * This file is part of The ManaVerse Client. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -22,7 +22,7 @@ #include "graphicsmanager.h" #ifdef USE_OPENGL -#ifndef WIN32 +#ifndef _WIN32 #ifdef ANDROID #include <GLES2/gl2.h> @@ -43,7 +43,7 @@ PRAGMA48(GCC diagnostic pop) #include <GL/glx.h> #endif // USE_X11 #endif // ANDROID -#endif // WIN32 +#endif // _WIN32 #endif // USE_OPENGL #include "settings.h" @@ -682,7 +682,7 @@ void GraphicsManager::updatePlanformExtensions() SDL_VERSION(&info.version) if (SDL::getWindowWMInfo(mainGraphics->getWindow(), &info)) { -#ifdef WIN32 +#ifdef _WIN32 if (!mwglGetExtensionsString) return; @@ -755,7 +755,7 @@ void GraphicsManager::updatePlanformExtensions() } logger->log("width=%d", DisplayWidth(display, screenNum)); } -#endif // WIN32 +#endif // _WIN32 } } @@ -1398,9 +1398,9 @@ void GraphicsManager::initOpenGLFunctions() logger->log1("shaders not supported"); } -#ifdef WIN32 +#ifdef _WIN32 assignFunctionARB(wglGetExtensionsString) -#endif // WIN32 +#endif // _WIN32 #endif // __native_client__ } @@ -1670,7 +1670,7 @@ void GraphicsManager::detectPixelSize() SDL_VERSION(&info.version) if (SDL::getWindowWMInfo(mainGraphics->getWindow(), &info)) { -#ifdef WIN32 +#ifdef _WIN32 #ifdef USE_SDL2 HDC hdc = GetDC(info.info.win.window); #else @@ -1698,7 +1698,7 @@ void GraphicsManager::detectPixelSize() mWidthMM = DisplayWidthMM(display, screenNum); mHeightMM = DisplayHeightMM(display, screenNum); } -#endif // WIN32 +#endif // _WIN32 } #if defined ANDROID #ifdef USE_SDL2 |