1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 08:17:45 +00:00

Snake: Use the system default fixed-width font

Instead of looking one up by name.
This commit is contained in:
Andreas Kling 2020-10-26 09:18:16 +01:00
parent 0f5d1f4074
commit 05ff75c321

View file

@ -35,7 +35,7 @@
SnakeGame::SnakeGame() SnakeGame::SnakeGame()
{ {
set_font(GUI::FontDatabase::the().get_by_name("Liza Regular")); set_font(Gfx::Font::default_bold_fixed_width_font());
m_fruit_bitmaps.append(*Gfx::Bitmap::load_from_file("/res/icons/snake/paprika.png")); m_fruit_bitmaps.append(*Gfx::Bitmap::load_from_file("/res/icons/snake/paprika.png"));
m_fruit_bitmaps.append(*Gfx::Bitmap::load_from_file("/res/icons/snake/eggplant.png")); m_fruit_bitmaps.append(*Gfx::Bitmap::load_from_file("/res/icons/snake/eggplant.png"));
m_fruit_bitmaps.append(*Gfx::Bitmap::load_from_file("/res/icons/snake/cauliflower.png")); m_fruit_bitmaps.append(*Gfx::Bitmap::load_from_file("/res/icons/snake/cauliflower.png"));