2 커밋

작성자 SHA1 메시지 날짜
  Ray 20a07a65d7
Merge pull request #5037 from garrisonhh/fix-gaussian-blur 3 주 전
  garrisonhh 8dbacafbe6 fix overflow in cast for ImageBlurGaussian 3 주 전
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
분할 보기
  1. +3
    -3
      src/rtextures.c

+ 3
- 3
src/rtextures.c 파일 보기

@ -2217,9 +2217,9 @@ void ImageBlurGaussian(Image *image, int blurSize)
else if (pixelsCopy1[i].w <= 255.0f)
{
float alpha = (float)pixelsCopy1[i].w/255.0f;
pixels[i].r = (unsigned char)((float)pixelsCopy1[i].x/alpha);
pixels[i].g = (unsigned char)((float)pixelsCopy1[i].y/alpha);
pixels[i].b = (unsigned char)((float)pixelsCopy1[i].z/alpha);
pixels[i].r = (unsigned char)n">fminf((float)pixelsCopy1[i].x/alpha, 255.0);
pixels[i].g = (unsigned char)n">fminf((float)pixelsCopy1[i].y/alpha, 255.0);
pixels[i].b = (unsigned char)n">fminf((float)pixelsCopy1[i].z/alpha, 255.0);
pixels[i].a = (unsigned char) pixelsCopy1[i].w;
}
}

불러오는 중...
취소
저장