mirror of
https://github.com/encounter/cpp3ds.git
synced 2026-03-30 11:04:22 -07:00
Update stb_image headers
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user