diff options
| author | raysan5 <raysan5@gmail.com> | 2015-10-06 17:13:40 +0200 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2015-10-06 17:13:40 +0200 |
| commit | 34db515acb4f38b8478706c5962cc0038c515ce8 (patch) | |
| tree | 56e976c603b02cec79f6452085eaa278db0b6a68 /src/utils.c | |
| parent | 6ffb3c72fbbdd73467e7ef36b542f20a5b1f9300 (diff) | |
| download | raylib-34db515acb4f38b8478706c5962cc0038c515ce8.tar.gz raylib-34db515acb4f38b8478706c5962cc0038c515ce8.zip | |
Reviewed some comments and WritePNG()
Diffstat (limited to 'src/utils.c')
| -rw-r--r-- | src/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils.c b/src/utils.c index b8e8bc1a..aac461cd 100644 --- a/src/utils.c +++ b/src/utils.c @@ -160,9 +160,9 @@ void WriteBitmap(const char *fileName, unsigned char *imgData, int width, int he // Creates a PNG image file from an array of pixel data // NOTE: Uses stb_image_write -void WritePNG(const char *fileName, unsigned char *imgData, int width, int height) +void WritePNG(const char *fileName, unsigned char *imgData, int width, int height, int compSize) { - stbi_write_png(fileName, width, height, 4, imgData, width*4); // It WORKS!!! + stbi_write_png(fileName, width, height, compSize, imgData, width*compSize); } #endif |
