mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
Fix coding style
This commit is contained in:
parent
69a600b00e
commit
33598563b3
@ -1376,8 +1376,7 @@ KMSDRM_SetWindowGammaRamp(_THIS, SDL_Window * window, const Uint16 * ramp)
|
|||||||
Uint16* tempRamp = SDL_calloc(3 * sizeof(Uint16), 256);
|
Uint16* tempRamp = SDL_calloc(3 * sizeof(Uint16), 256);
|
||||||
if (tempRamp == NULL)
|
if (tempRamp == NULL)
|
||||||
{
|
{
|
||||||
SDL_OutOfMemory();
|
return SDL_OutOfMemory();
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
SDL_memcpy(tempRamp, ramp, 3 * sizeof(Uint16) * 256);
|
SDL_memcpy(tempRamp, ramp, 3 * sizeof(Uint16) * 256);
|
||||||
if (KMSDRM_drmModeCrtcSetGamma(viddata->drm_fd, dispdata->crtc->crtc_id, 256, &tempRamp[0*256], &tempRamp[1*256], &tempRamp[2*256]) == -1)
|
if (KMSDRM_drmModeCrtcSetGamma(viddata->drm_fd, dispdata->crtc->crtc_id, 256, &tempRamp[0*256], &tempRamp[1*256], &tempRamp[2*256]) == -1)
|
||||||
|
Loading…
Reference in New Issue
Block a user