mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 21:47:43 +00:00
LibGfx: Unpublish Gfx::Size from the global namespace
This commit is contained in:
parent
9b87843af1
commit
f8b00aa290
29 changed files with 41 additions and 43 deletions
|
@ -196,7 +196,7 @@ void SnakeGame::keydown_event(GUI::KeyEvent& event)
|
|||
Gfx::Rect SnakeGame::cell_rect(const Coordinate& coord) const
|
||||
{
|
||||
auto game_rect = rect();
|
||||
auto cell_size = Size(game_rect.width() / m_columns, game_rect.height() / m_rows);
|
||||
auto cell_size = Gfx::Size(game_rect.width() / m_columns, game_rect.height() / m_rows);
|
||||
return {
|
||||
coord.column * cell_size.width(),
|
||||
coord.row * cell_size.height(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue