summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/render/drawogl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/modules/render/drawogl.cpp')
-rw-r--r--src/osd/modules/render/drawogl.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/osd/modules/render/drawogl.cpp b/src/osd/modules/render/drawogl.cpp
index f9f76946bf4..b9229ed46f3 100644
--- a/src/osd/modules/render/drawogl.cpp
+++ b/src/osd/modules/render/drawogl.cpp
@@ -49,7 +49,11 @@ typedef uint64_t HashT;
// standard SDL headers
#define TOBEMIGRATED 1
+#ifdef SDLMAME_SDL3
+#include <SDL3/SDL.h>
+#else
#include <SDL2/SDL.h>
+#endif
#endif // !defined(OSD_WINDOWS && !defined(OSD_MAC)
@@ -1244,16 +1248,9 @@ int renderer_ogl::draw(const int update)
/*
Mac hack: macOS version 10.15 and later flipped from assuming you don't support Retina to
- assuming you do support Retina. SDL 2.0.11 is scheduled to fix this, but it's not out yet.
- So we double-scale everything if you're on 10.15 or later and SDL is not at least version 2.0.11.
+ assuming you do support Retina.
*/
- #if defined(SDLMAME_MACOSX) && !defined(OSD_MAC)
- SDL_version sdlVers;
- SDL_GetVersion(&sdlVers);
- // Only do this if SDL is not at least 2.0.11.
- if ((sdlVers.major == 2) && (sdlVers.minor == 0) && (sdlVers.patch < 11))
- #endif
- #if defined(SDLMAME_MACOSX) || defined(OSD_MAC)
+ #if !defined(SDLMAME_MACOSX) && defined(OSD_MAC)
{
// now get the Darwin kernel version
int dMaj, dMin, dPatch;