Update stb_image headers

This commit is contained in:
Thomas Edvalson
2016-02-19 22:02:31 -05:00
parent bb570c8e74
commit 3f8ebffb72
3 changed files with 4635 additions and 2160 deletions
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+3 -2
View File
@@ -29,8 +29,9 @@
#include <cpp3ds/Resources.hpp>
#include <cpp3ds/System/InputStream.hpp>
#include <cpp3ds/System/Err.hpp>
#include <cpp3ds/Graphics/stb_image/stb_image.h>
#define STB_IMAGE_IMPLEMENTATION
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include <cpp3ds/Graphics/stb_image/stb_image.h>
#include <cpp3ds/Graphics/stb_image/stb_image_write.h>
extern "C"
{
@@ -57,7 +58,7 @@ namespace
cpp3ds::InputStream* stream = static_cast<cpp3ds::InputStream*>(user);
return static_cast<int>(stream->read(data, size));
}
void skip(void* user, unsigned int size)
void skip(void* user, int size)
{
cpp3ds::InputStream* stream = static_cast<cpp3ds::InputStream*>(user);
stream->seek(stream->tell() + size);