Set scale-aware text size when initializing the object

This commit is contained in:
2025-03-06 19:58:43 -06:00
committed by Celtic Minstrel
parent 5696b97491
commit 823fb8904d
3 changed files with 7 additions and 6 deletions

View File

@@ -24,6 +24,7 @@ const int TEXT_BUF_LEN = 70;
#include "fileio/resmgr/res_font.hpp"
#include "spell.hpp"
#include "tools/enum_map.hpp"
#include "tools/winutil.hpp"
#include "replay.hpp"
#include <boost/lexical_cast.hpp>
@@ -1089,7 +1090,7 @@ void print_buf () {
location moveTo;
while((line_to_print!= buf_pointer) && (num_lines_printed < LINES_IN_TEXT_WIN)) {
moveTo = location(4, 1 + 12 * num_lines_printed);
sf::Text text(text_buffer[line_to_print].line, *ResMgr::fonts.get("plain"), 12);
sf::Text text(text_buffer[line_to_print].line, *ResMgr::fonts.get("plain"), 12 * get_ui_scale());
text.setColor(Colours::BLACK);
text.setPosition(moveTo);
draw_scale_aware_text(text_area_gworld(), text);