Skip to content

Commit

Permalink
fixed implicit cast warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
oddbookworm committed Jan 14, 2024
1 parent 91ddf11 commit e9225b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/render_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ void RenderWindow::blit(const std::shared_ptr<Texture>& texture, Rect crop, Rect

void RenderWindow::blit(const std::shared_ptr<Texture>& texture, const math::Vec2& position)
{
SDL_FRect rect = {position.x, position.y, texture->getSize().x, texture->getSize().y};
SDL_FRect rect = {(float)position.x, (float)position.y, (float)texture->getSize().x,
(float)texture->getSize().y};

SDL_RenderCopyF(m_renderer, texture->getSDLTexture(), nullptr, &rect);
}
Expand Down

0 comments on commit e9225b0

Please sign in to comment.