Add error message for SDL_SetGammaRamp() failures in videoSetGamma()

git-svn-id: https://svn.eduke32.com/eduke32@7316 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-01-22 22:51:08 +00:00
parent 8098d04875
commit 0a3b840d4e

View file

@ -1863,10 +1863,13 @@ int32_t videoSetGamma(void)
*/ */
#endif #endif
OSD_Printf("videoSetGamma(): %s\n", SDL_GetError());
#ifndef EDUKE32_GLES #ifndef EDUKE32_GLES
#if SDL_MAJOR_VERSION == 1 #if SDL_MAJOR_VERSION == 1
SDL_SetGammaRamp(&sysgamma[0][0], &sysgamma[1][0], &sysgamma[2][0]); SDL_SetGammaRamp(&sysgamma[0][0], &sysgamma[1][0], &sysgamma[2][0]);
#else #else
if (sdl_window) if (sdl_window)
SDL_SetWindowGammaRamp(sdl_window, &sysgamma[0][0], &sysgamma[1][0], &sysgamma[2][0]); SDL_SetWindowGammaRamp(sdl_window, &sysgamma[0][0], &sysgamma[1][0], &sysgamma[2][0]);
#endif #endif