diff options
Diffstat (limited to 'src/crepe/api/Texture.cpp')
| -rw-r--r-- | src/crepe/api/Texture.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/crepe/api/Texture.cpp b/src/crepe/api/Texture.cpp index c31f704..5ebd23d 100644 --- a/src/crepe/api/Texture.cpp +++ b/src/crepe/api/Texture.cpp @@ -29,11 +29,11 @@ void Texture::load(unique_ptr<Asset> res) {  	this->texture = std::move(ctx.texture_from_path(res->canonical()));  } -int Texture::get_width() const{ +int Texture::get_width() const {  	if (this->texture == nullptr) return 0;  	return SDLContext::get_instance().get_width(*this);  } -int Texture::get_height() const{ +int Texture::get_height() const {  	if (this->texture == nullptr) return 0;  	return SDLContext::get_instance().get_width(*this);  } |