From 33598563b35067417c2fed8fab03c503438ce6f6 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Fri, 26 Feb 2021 23:21:25 +0600 Subject: [PATCH] Fix coding style --- src/video/kmsdrm/SDL_kmsdrmvideo.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/video/kmsdrm/SDL_kmsdrmvideo.c b/src/video/kmsdrm/SDL_kmsdrmvideo.c index e15737885..5cfc6f19f 100644 --- a/src/video/kmsdrm/SDL_kmsdrmvideo.c +++ b/src/video/kmsdrm/SDL_kmsdrmvideo.c @@ -1373,13 +1373,12 @@ KMSDRM_SetWindowGammaRamp(_THIS, SDL_Window * window, const Uint16 * ramp) SDL_VideoData *viddata = (SDL_VideoData*)windata->viddata; SDL_VideoDisplay *disp = SDL_GetDisplayForWindow(window); SDL_DisplayData* dispdata = (SDL_DisplayData*)disp->driverdata; - Uint16* tempRamp = SDL_calloc(3 * sizeof(Uint16),256); + Uint16* tempRamp = SDL_calloc(3 * sizeof(Uint16), 256); if (tempRamp == NULL) { - SDL_OutOfMemory(); - return -1; + return SDL_OutOfMemory(); } - 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) { SDL_free(tempRamp);