aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Texture.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-08 20:21:36 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-08 20:21:36 +0100
commit506de66aaecc9b82415dde46058b848e46bc7258 (patch)
treea3f2427b0882d07f2d960b7214170533ad241830 /src/crepe/api/Texture.cpp
parent7817c85e84560933a33ad86ec3f9ca3d48d327d5 (diff)
nitpicks (merge #27)
Diffstat (limited to 'src/crepe/api/Texture.cpp')
-rw-r--r--src/crepe/api/Texture.cpp4
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);
}