Skip to content

Commit

Permalink
Remove unneeded Rect declaration in DrawingContext::get_viewport()
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbi committed Jul 31, 2023
1 parent 28c4786 commit 8652dad
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/video/drawing_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,6 @@ DrawingContext::pop_transform()
const Rect
DrawingContext::get_viewport() const
{
Rect tmp(
static_cast<int>(static_cast<float>(m_viewport.left) / transform().scale),
static_cast<int>(static_cast<float>(m_viewport.top) / transform().scale),
static_cast<int>(static_cast<float>(m_viewport.right) / transform().scale),
static_cast<int>(static_cast<float>(m_viewport.bottom) / transform().scale)
);

return m_viewport;
}

Expand Down

0 comments on commit 8652dad

Please sign in to comment.