aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/facade/Font.cpp
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-17 10:48:43 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-17 10:48:43 +0100
commit3b5b5258b0f46a3492a7fd777908dfb01e15417b (patch)
tree7c712c45cc627a1d7bfcb8ea949e8b0a59214a74 /src/crepe/facade/Font.cpp
parentd63eb7302d05fbe9b4c044ece3444e8ac4e56e02 (diff)
code not working
Diffstat (limited to 'src/crepe/facade/Font.cpp')
-rw-r--r--src/crepe/facade/Font.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/crepe/facade/Font.cpp b/src/crepe/facade/Font.cpp
index d419974..5af943d 100644
--- a/src/crepe/facade/Font.cpp
+++ b/src/crepe/facade/Font.cpp
@@ -1,3 +1,5 @@
+#include <SDL2/SDL_ttf.h>
+
#include "../api/Asset.h"
#include "../api/Config.h"
@@ -15,7 +17,7 @@ Font::Font(const Asset & src, Mediator & mediator)
if (loaded_font == NULL) {
throw runtime_error(format("Font: {} (path: {})", TTF_GetError(), FONT_PATH));
}
- this->font = {loaded_font, [](TTF_Font * font) { TTF_CloseFont(font); }};
+ this->font = {loaded_font, [](TTF_Font * close_font) { TTF_CloseFont(close_font); }};
}
TTF_Font * Font::get_font() const { return this->font.get(); }