Commit 53d31dab authored by carnivoroussociety's avatar carnivoroussociety Committed by NY00123
Browse files

Fix videoSetGamma() for SDL1 target

parent cc1c4364
......@@ -2139,13 +2139,13 @@ int32_t videoSetGamma(void)
if (sdl_window)
i = SDL_SetWindowGammaRamp(sdl_window, &gammaTable[0], &gammaTable[256], &gammaTable[512]);
if (i < 0)
{
#else
i = SDL_SetGammaRamp(&gammaTable[0], &gammaTable[256], &gammaTable[512]);
if (i != -1)
#endif
if (i < 0)
if ((i != -1) && (i < 0))
{
#endif
if (i != INT32_MIN)
LOG_F(ERROR, "Failed setting window gamma ramp: %s.", SDL_GetError());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment