SDL-1.2: Disable SetGammaRamp on modern X servers

From d4b1811edcbd2cc14b192c0dc7b4d5f25cc8864d Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Wed, 4 Jan 2023 18:38:07 -0800
Subject: [PATCH] Disable SetGammaRamp on modern X servers

Fixes https://github.com/libsdl-org/SDL-1.2/issues/717
---
 src/video/x11/SDL_x11video.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/video/x11/SDL_x11video.c b/src/video/x11/SDL_x11video.c
index b4f9f1b6..351a86c7 100644
--- a/src/video/x11/SDL_x11video.c
+++ b/src/video/x11/SDL_x11video.c
@@ -152,7 +152,9 @@ static SDL_VideoDevice *X11_CreateDevice(int devindex)
 		device->FreeHWSurface = X11_FreeHWSurface;
 		device->SetGamma = X11_SetVidModeGamma;
 		device->GetGamma = X11_GetVidModeGamma;
+#if 0 /* Disable SetGammaRamp on modern X servers */
 		device->SetGammaRamp = X11_SetGammaRamp;
+#endif
 		device->GetGammaRamp = NULL;
 #if SDL_VIDEO_OPENGL_GLX
 		device->GL_LoadLibrary = X11_GL_LoadLibrary;