diff options
Diffstat (limited to 'src/Entry.cpp')
-rw-r--r-- | src/Entry.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Entry.cpp b/src/Entry.cpp index 2b9e573..ae370c5 100644 --- a/src/Entry.cpp +++ b/src/Entry.cpp @@ -1,4 +1,5 @@ #include "../include/Entry.hpp" +#include "../include/FontLoader.hpp" #include <SFML/Graphics/RenderWindow.hpp> #include <SFML/Graphics/RectangleShape.hpp> #include <SFML/Window/Event.hpp> @@ -9,13 +10,13 @@ const float padding_vertical = 3.0f; const float background_margin_vertical = 0.0f; namespace QuickMedia { - Entry::Entry(const std::string &placeholder_text, sf::Font *font, sf::Font *cjk_font) : + Entry::Entry(const std::string &placeholder_text) : on_submit_callback(nullptr), draw_background(true), - text("", font, cjk_font, 16, 0.0f), + text("", false, 16, 0.0f), width(0.0f), background(sf::Vector2f(1.0f, 1.0f), 7.0f, 10), - placeholder(placeholder_text, *font, 16) + placeholder(placeholder_text, *FontLoader::get_font(FontLoader::FontType::LATIN), 16) { text.setEditable(true); background.setFillColor(sf::Color(55, 60, 68)); |