diff options
author | don bright <hugh.m.bright@gmail.com> | 2011-10-16 03:59:54 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2011-10-16 03:59:54 (GMT) |
commit | e79ee827185e19daac8f4d2385cce44098374d64 (patch) | |
tree | f252577c49f4ecd586cb6f9977b0d77667d61a1b /tests/imageutils-lodepng.cc | |
parent | 786dc3de411074a4b90fc51397c10539c45272f7 (diff) |
fix text tests for windows + enable framebuffer tests
Diffstat (limited to 'tests/imageutils-lodepng.cc')
-rw-r--r-- | tests/imageutils-lodepng.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/imageutils-lodepng.cc b/tests/imageutils-lodepng.cc index 8636fa4..8460d9e 100644 --- a/tests/imageutils-lodepng.cc +++ b/tests/imageutils-lodepng.cc @@ -10,7 +10,8 @@ bool write_png(const char *filename, unsigned char *pixels, int width, int heigh 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"); + + FILE *f = fopen(filename, "wb"); if (!f) { free(dataout); return false; |