fix utf-16 reading and make it work on android
This commit is contained in:
@@ -41,7 +41,10 @@ bool Image::load_file(std::string filename)
|
||||
|
||||
bool Image::save(const std::string& path)
|
||||
{
|
||||
return stbi_write_png(path.c_str(), width, height, comp, data(), 0);
|
||||
bool ret = stbi_write_png(path.c_str(), width, height, comp, data(), 0);
|
||||
if (!ret)
|
||||
LOG("failed Image::save %s", path.c_str());
|
||||
return ret;
|
||||
}
|
||||
|
||||
void Image::flip()
|
||||
|
||||
Reference in New Issue
Block a user