mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 15:39:22 +00:00
pango_text: apply scaling to size attribute runs
This commit is contained in:
parent
0b4611abb4
commit
570d358110
@ -331,6 +331,7 @@ int pango_text::xy_to_index(const point& position) const
|
||||
|
||||
void pango_text::add_attribute_size(const unsigned start_offset, const unsigned end_offset, int size)
|
||||
{
|
||||
size = prefs::get().font_scaled(size) * pixel_scale_;
|
||||
attribute_start_offset_ = start_offset;
|
||||
attribute_end_offset_ = end_offset;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user