Don't load font in TextWidget

This commit is contained in:
2022-05-19 21:02:00 +02:00
parent 41a75f7422
commit 8aa7267b21
4 changed files with 14 additions and 11 deletions

View File

@ -41,8 +41,7 @@ public:
class TextWidget : public TextureWidget {
public:
TextWidget(SDL_Renderer* renderer, SDL_Rect dest_rect,
const std::string& font_path,
TextWidget(SDL_Renderer* renderer, SDL_Rect dest_rect, TTF_Font* font,
const std::string& initial_text = "");
~TextWidget();