From 6dc5194895b6bd61d19bf5c95021471784084325 Mon Sep 17 00:00:00 2001 From: untodesu Date: Tue, 1 Jul 2025 03:23:05 +0500 Subject: I forgot to set these to true in .clang-format https://files.catbox.moe/909rig.gif --- core/resource/binfile.cc | 3 ++- core/resource/image.cc | 9 ++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'core/resource') diff --git a/core/resource/binfile.cc b/core/resource/binfile.cc index e17db50..b8e3db8 100644 --- a/core/resource/binfile.cc +++ b/core/resource/binfile.cc @@ -39,7 +39,8 @@ void resource::hard_cleanup(void) for(const auto& it : resource_map) { if(it.second.use_count() > 1L) { spdlog::warn("resource: zombie resource [BinFile] {} [use_count={}]", it.first, it.second.use_count()); - } else { + } + else { spdlog::debug("resource: releasing [BinFile] {}", it.first); } diff --git a/core/resource/image.cc b/core/resource/image.cc index 1601703..9ff0206 100644 --- a/core/resource/image.cc +++ b/core/resource/image.cc @@ -41,7 +41,8 @@ resource_ptr resource::load(const char* name, unsigned int flags) if(flags & IMAGE_LOAD_FLIP) { stbi_set_flip_vertically_on_load(true); - } else { + } + else { stbi_set_flip_vertically_on_load(false); } @@ -54,7 +55,8 @@ resource_ptr resource::load(const char* name, unsigned int flags) if(flags & IMAGE_LOAD_GRAY) { new_resource->pixels = stbi_load_from_callbacks(&callbacks, file, &new_resource->size.x, &new_resource->size.y, nullptr, STBI_grey); - } else { + } + else { new_resource->pixels = stbi_load_from_callbacks( &callbacks, file, &new_resource->size.x, &new_resource->size.y, nullptr, STBI_rgb_alpha); } @@ -81,7 +83,8 @@ void resource::hard_cleanup(void) for(const auto& it : resource_map) { if(it.second.use_count() > 1L) { spdlog::warn("resource: zombie resource [Image] {} [use_count={}]", it.first, it.second.use_count()); - } else { + } + else { spdlog::debug("resource: releasing [Image] {}", it.first); } -- cgit