Skip to content

Commit

Permalink
Fix gif recording on windows
Browse files Browse the repository at this point in the history
- Have to fopen with binary mode
  • Loading branch information
Vogtinator committed Jun 8, 2016
1 parent 4e5cb35 commit 48f4677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/gif.cpp
Expand Up @@ -27,7 +27,7 @@ bool gif_start_recording(const char *filename, unsigned int frameskip)
framenr = framenrskip = frameskip;
framedelay = 100 / (60/(frameskip+1));

FILE *gif_file = fopen_utf8(filename, "w");
FILE *gif_file = fopen_utf8(filename, "wb");

if(gif_file && GifBegin(&writer, gif_file, 320, 240, framedelay))
recording = true;
Expand Down

0 comments on commit 48f4677

Please sign in to comment.