summaryrefslogtreecommitdiff
path: root/Games/2048
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-10-31 10:18:49 +0100
committerAndreas Kling <kling@serenityos.org>2020-10-31 13:56:21 +0100
commit982e066100c187a7565c43103572a987ae3766bc (patch)
tree7f1368bcea28186d28f7562879da54ce569d5729 /Games/2048
parente569f7fd1cc6cf3aed785ef639566d9d01133fa5 (diff)
downloadserenity-982e066100c187a7565c43103572a987ae3766bc.zip
LibGfx: Move FontDatabase from LibGUI to LibGfx
Not sure why I put this into LibGUI in the first place.
Diffstat (limited to 'Games/2048')
-rw-r--r--Games/2048/BoardView.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Games/2048/BoardView.cpp b/Games/2048/BoardView.cpp
index 679596859d..230c1eedc5 100644
--- a/Games/2048/BoardView.cpp
+++ b/Games/2048/BoardView.cpp
@@ -25,9 +25,9 @@
*/
#include "BoardView.h"
-#include <LibGUI/FontDatabase.h>
#include <LibGUI/Painter.h>
#include <LibGfx/Font.h>
+#include <LibGfx/FontDatabase.h>
#include <LibGfx/Palette.h>
BoardView::BoardView(const Game::Board* board)
@@ -63,7 +63,7 @@ void BoardView::pick_font()
{
String best_font_name;
int best_font_size = -1;
- auto& font_database = GUI::FontDatabase::the();
+ auto& font_database = Gfx::FontDatabase::the();
font_database.for_each_font([&](const Gfx::Font& font) {
if (font.family() != "Liza" || font.weight() != 700)
return;