Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Richard Gobeille
EDuke32
Commits
53d31dab
Commit
53d31dab
authored
Mar 11, 2022
by
carnivoroussociety
Committed by
NY00123
Apr 21, 2022
Browse files
Fix videoSetGamma() for SDL1 target
parent
cc1c4364
Changes
1
Show whitespace changes
Inline
Side-by-side
source/build/src/sdlayer.cpp
View file @
53d31dab
...
...
@@ -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
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment