Update to v098r10 release.

byuu says:

Changelog:
- synchronized tomoko, loki, icarus with extensive changes to nall
  (118KiB diff)
This commit is contained in:
Tim Allen
2016-05-16 19:51:12 +10:00
parent 6ae0abe3d3
commit 3ebc77c148
105 changed files with 1281 additions and 824 deletions

View File

@@ -86,7 +86,7 @@ auto image::operator=(image&& source) -> image& {
}
image::operator bool() const {
return !empty();
return _data && _width && _height;
}
auto image::operator==(const image& source) const -> bool {
@@ -137,10 +137,6 @@ auto image::free() -> void {
_data = nullptr;
}
auto image::empty() const -> bool {
return !_data || !_width || !_height;
}
auto image::load(const string& filename) -> bool {
if(loadBMP(filename) == true) return true;
if(loadPNG(filename) == true) return true;