diff options
| author | raysan5 <[email protected]> | 2020-06-07 20:32:43 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2020-06-07 20:32:43 +0200 |
| commit | 87592e2625573ef151843a52b34acec35762d3ff (patch) | |
| tree | 18aa6484bda613e620406b782e6584346b27c403 /src/textures.c | |
| parent | d0e92286600d2447d86d2d9c021d5a30f8c6ece7 (diff) | |
| download | raylib-87592e2625573ef151843a52b34acec35762d3ff.tar.gz raylib-87592e2625573ef151843a52b34acec35762d3ff.zip | |
Update textures.c
Diffstat (limited to 'src/textures.c')
| -rw-r--r-- | src/textures.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/textures.c b/src/textures.c index 7d038975..df7b35be 100644 --- a/src/textures.c +++ b/src/textures.c @@ -1111,12 +1111,12 @@ void ImageAlphaClear(Image *image, Color color, float threshold) for (int i = 0; i < image->width*image->height; i++) if (pixels[i].a <= (unsigned char)(threshold*255.0f)) pixels[i] = color; RL_FREE(image->data); - int prevFormat = image->format; + int format = image->format; image->data = pixels; image->format = UNCOMPRESSED_R8G8B8A8; - ImageFormat(image, prevFormat); + ImageFormat(image, format); } // Apply alpha mask to image @@ -1189,11 +1189,11 @@ void ImageAlphaPremultiply(Image *image) RL_FREE(image->data); - int prevFormat = image->format; + int format = image->format; image->data = pixels; image->format = UNCOMPRESSED_R8G8B8A8; - ImageFormat(image, prevFormat); + ImageFormat(image, format); } // Resize and image to new size |
