Skip to content

Commit 245d556

Browse files
authored
Formatting
1 parent df05148 commit 245d556

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

runtime/Includes/Core/Graphics.inl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ namespace mlx
5050
new_text.SetColor(std::move(vec_color));
5151
}
5252
else if(!p_scene->IsTextAtGivenDrawLayer(str, m_draw_layer))
53-
{
5453
p_scene->BringToDrawLayer(text.Get(), m_draw_layer);
55-
}
5654
}
5755

5856
void GraphicsSupport::TexturePut(NonOwningPtr<Texture> texture, int x, int y)
@@ -70,10 +68,8 @@ namespace mlx
7068
new_sprite.SetPosition(Vec2f{ static_cast<float>(x), static_cast<float>(y) });
7169

7270
}
73-
else if(!p_scene->IsTextureAtGivenDrawLayer(texture, m_draw_layer))
74-
{
75-
p_scene->BringToDrawLayer(sprite.Get(), m_draw_layer);
76-
}
71+
else if(!p_scene->IsTextureAtGivenDrawLayer(texture, m_draw_layer))
72+
p_scene->BringToDrawLayer(sprite.Get(), m_draw_layer);
7773
}
7874

7975
void GraphicsSupport::TryEraseSpritesInScene(NonOwningPtr<Texture> texture) noexcept

0 commit comments

Comments
 (0)