mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-26 17:34:47 +02:00
Update to v098r10 release.
byuu says: Changelog: - synchronized tomoko, loki, icarus with extensive changes to nall (118KiB diff)
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user