diff options
| author | Ray <[email protected]> | 2020-02-03 19:26:28 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2020-02-03 19:26:28 +0100 |
| commit | c3f06b7470b2654c4cce20c3e18c46ad81330b3f (patch) | |
| tree | 0497e56ed1915773ce76d318fb3934aa7674124e /src/textures.c | |
| parent | a7afd8de99f74139647845c8a20513a4bc217767 (diff) | |
| download | raylib-c3f06b7470b2654c4cce20c3e18c46ad81330b3f.tar.gz raylib-c3f06b7470b2654c4cce20c3e18c46ad81330b3f.zip | |
Remove all trail spaces
Diffstat (limited to 'src/textures.c')
| -rw-r--r-- | src/textures.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/textures.c b/src/textures.c index 899554b0..10016a28 100644 --- a/src/textures.c +++ b/src/textures.c @@ -458,9 +458,9 @@ void UnloadRenderTexture(RenderTexture2D target) Color *GetImageData(Image image) { if ((image.width == 0) || (image.height == 0)) return NULL; - + Color *pixels = (Color *)RL_MALLOC(image.width*image.height*sizeof(Color)); - + if (image.format >= COMPRESSED_DXT1_RGB) TRACELOG(LOG_WARNING, "Pixel data retrieval not supported for compressed image formats"); else { @@ -686,9 +686,9 @@ Vector4 *GetImageDataNormalized(Image image) Rectangle GetImageAlphaBorder(Image image, float threshold) { Rectangle crop = { 0 }; - + Color *pixels = GetImageData(image); - + if (pixels != NULL) { int xMin = 65536; // Define a big enough number @@ -2992,9 +2992,9 @@ static Image LoadAnimatedGIF(const char *fileName, int *frames, int **delays) { fseek(gifFile, 0L, SEEK_END); int size = ftell(gifFile); - fseek(gifFile, 0L, SEEK_SET); + fseek(gifFile, 0L, SEEK_SET); - unsigned char *buffer = (unsigned char *)RL_CALLOC(size, sizeof(char)); + unsigned char *buffer = (unsigned char *)RL_CALLOC(size, sizeof(char)); fread(buffer, sizeof(char), size, gifFile); fclose(gifFile); // Close file pointer |
