From 245d5561052bd55c4e4dbc7b1b4d7f01628dca94 Mon Sep 17 00:00:00 2001 From: Namonay <105780726+Namonay@users.noreply.github.com> Date: Mon, 28 Oct 2024 20:02:42 +0100 Subject: [PATCH] Formatting --- runtime/Includes/Core/Graphics.inl | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/runtime/Includes/Core/Graphics.inl b/runtime/Includes/Core/Graphics.inl index 24b6dd5..5bbd14d 100644 --- a/runtime/Includes/Core/Graphics.inl +++ b/runtime/Includes/Core/Graphics.inl @@ -50,9 +50,7 @@ namespace mlx new_text.SetColor(std::move(vec_color)); } else if(!p_scene->IsTextAtGivenDrawLayer(str, m_draw_layer)) - { p_scene->BringToDrawLayer(text.Get(), m_draw_layer); - } } void GraphicsSupport::TexturePut(NonOwningPtr texture, int x, int y) @@ -70,10 +68,8 @@ namespace mlx new_sprite.SetPosition(Vec2f{ static_cast(x), static_cast(y) }); } - else if(!p_scene->IsTextureAtGivenDrawLayer(texture, m_draw_layer)) - { - p_scene->BringToDrawLayer(sprite.Get(), m_draw_layer); - } + else if(!p_scene->IsTextureAtGivenDrawLayer(texture, m_draw_layer)) + p_scene->BringToDrawLayer(sprite.Get(), m_draw_layer); } void GraphicsSupport::TryEraseSpritesInScene(NonOwningPtr texture) noexcept