Select the types of activity you want to include in your feed.
Removed SDL_PREALLOC hack and stbi allocator override. Replaced them with a copy of the data instead to try to avoid crashes with Visual Studio. Lots of whitespace changes because I forgot to configure my editor first.
···1122#define STB_IMAGE_IMPLEMENTATION
3344-// Make stb-image use SDL's allocator so we can let SDL handle the memory that stb allocates.
55-// To do this, we'll redefine malloc and free.
66-#include "SDL.h"
77-#include <stdlib.h>
88-#undef malloc
99-#undef free
1010-#define malloc SDL_malloc
1111-#define free SDL_free
1212-134#include "stb_image.h"
+3-8
src/externals/stb_image/stb_image_write.c
···1122#define STB_IMAGE_WRITE_IMPLEMENTATION
3344-// stbi_write_png_to_mem() returns a malloc'ed array,
55-// so let's do the same thing as done with stb_image.c so it is more compatible with SDL's allocator.
66-#include "SDL.h"
77-#include <stdlib.h>
88-#undef malloc
99-#undef free
1010-#define malloc SDL_malloc
1111-#define free SDL_free
44+// NOTE: stbi_write_png_to_mem() returns a malloc'ed array,
55+// This might be bad for making sure the allocator and deallocator match
66+// and for crossing DLL boundaries with incompatible C runtimes.
127138149#include "stb_image_write.h"