summaryrefslogtreecommitdiff
path: root/Userland/Games/Breakout
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Games/Breakout')
-rw-r--r--Userland/Games/Breakout/Game.cpp2
-rw-r--r--Userland/Games/Breakout/Game.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Games/Breakout/Game.cpp b/Userland/Games/Breakout/Game.cpp
index c8720ef22b..bf38388717 100644
--- a/Userland/Games/Breakout/Game.cpp
+++ b/Userland/Games/Breakout/Game.cpp
@@ -139,7 +139,7 @@ void Game::paint_event(GUI::PaintEvent& event)
painter.draw_text(lives_left_rect(), String::formatted("Lives: {}", m_lives), Gfx::TextAlignment::Center, Color::White);
if (m_paused) {
- const char* msg = m_cheater ? "C H E A T E R" : "P A U S E D";
+ char const* msg = m_cheater ? "C H E A T E R" : "P A U S E D";
painter.draw_text(pause_rect(), msg, Gfx::TextAlignment::Center, Color::White);
}
}
diff --git a/Userland/Games/Breakout/Game.h b/Userland/Games/Breakout/Game.h
index 40e68cee0a..998ba51e6a 100644
--- a/Userland/Games/Breakout/Game.h
+++ b/Userland/Games/Breakout/Game.h
@@ -86,7 +86,7 @@ private:
Gfx::IntRect pause_rect() const
{
- const char* msg = m_cheater ? "C H E A T E R" : "P A U S E D";
+ char const* msg = m_cheater ? "C H E A T E R" : "P A U S E D";
int msg_width = font().width(msg);
int msg_height = font().glyph_height();
return { (game_width / 2) - (msg_width / 2), (game_height / 2) - (msg_height / 2), msg_width, msg_height };