GUI2/Text Box Base: use existing resolution config ptr

No need to call get_control twice. Only styled_widget needs to do that.
This commit is contained in:
Charles Dang 2025-03-11 23:55:38 -04:00
parent 5dd3ec6113
commit f111ab1f7b

View File

@ -50,8 +50,7 @@ text_box_base::text_box_base(const implementation::builder_styled_widget& builde
, cursor_alpha_(0)
, cursor_blink_rate_(750ms)
{
auto cfg = get_control(control_type, builder.definition);
set_font_family(cfg->text_font_family);
set_font_family(get_config()->text_font_family);
#ifdef __unix__
// pastes on UNIX systems.