mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-14 09:30:46 +00:00
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:
parent
5dd3ec6113
commit
f111ab1f7b
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user