summaryrefslogtreecommitdiff
path: root/tests/imageutils-lodepng.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/imageutils-lodepng.cc')
-rw-r--r--tests/imageutils-lodepng.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/imageutils-lodepng.cc b/tests/imageutils-lodepng.cc
index 98c48de..8636fa4 100644
--- a/tests/imageutils-lodepng.cc
+++ b/tests/imageutils-lodepng.cc
@@ -1,4 +1,5 @@
#include "lodepng.h"
+#include <stdio.h>
bool write_png(const char *filename, unsigned char *pixels, int width, int height)
{
@@ -6,7 +7,7 @@ bool write_png(const char *filename, unsigned char *pixels, int width, int heigh
//LodePNG_Text_add(&encoder.infoPng.text, "Comment", "Created with LodePNG");
size_t dataout_size = -1;
- GLubyte *dataout = (GLubyte*)malloc(width*height*4);
+ unsigned char *dataout = (unsigned char *)malloc(width*height*4);
LodePNG_encode(&dataout, &dataout_size, pixels, width, height, LCT_RGBA, 8);
//LodePNG_saveFile(dataout, dataout_size, "blah2.png");
FILE *f = fopen(filename, "w");
contact: Jan Huwald // Impressum