From f111ab1f7b070d77a06f54e0b08299482fe324de Mon Sep 17 00:00:00 2001 From: Charles Dang Date: Tue, 11 Mar 2025 23:55:38 -0400 Subject: [PATCH] GUI2/Text Box Base: use existing resolution config ptr No need to call get_control twice. Only styled_widget needs to do that. --- src/gui/widgets/text_box_base.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/widgets/text_box_base.cpp b/src/gui/widgets/text_box_base.cpp index c7dd46bfb90..8910f2d5327 100644 --- a/src/gui/widgets/text_box_base.cpp +++ b/src/gui/widgets/text_box_base.cpp @@ -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.