diff options
author | Harley Acheson <harley.acheson@gmail.com> | 2022-03-14 03:08:15 +0300 |
---|---|---|
committer | Harley Acheson <harley.acheson@gmail.com> | 2022-03-14 03:08:15 +0300 |
commit | b959f603da4532cd18618a31f091c40bff88e442 (patch) | |
tree | 4f5c2d99d1923d7f8f5db7fcc05620d70540f736 /source/blender/editors | |
parent | 4ec1c8bc9c0cb9b87ff1bf7e7642d144a7b4b38f (diff) |
Fix T96267: Sidebar Tab Font Size Correction
Correction to the calculation of font size used for the tabs on the
Sidebar so that they are always the same size as other content on the
panel.
See D14322 for more details.
Differential Revision: https://developer.blender.org/D14322
Reviewed by Brecht Van Lommel
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/interface/interface_panel.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c index c7f2eb230cb..87bfb7ca0f7 100644 --- a/source/blender/editors/interface/interface_panel.c +++ b/source/blender/editors/interface/interface_panel.c @@ -1357,9 +1357,8 @@ void UI_panel_category_draw_all(ARegion *region, const char *category_id_active) BLF_enable(fontid, BLF_ROTATION); BLF_rotation(fontid, M_PI_2); - // UI_fontstyle_set(&style->widget); - ui_fontscale(&fstyle_points, aspect / (U.pixelsize * 1.1f)); - BLF_size(fontid, fstyle_points, U.dpi); + ui_fontscale(&fstyle_points, aspect); + BLF_size(fontid, fstyle_points * U.pixelsize, U.dpi); /* Check the region type supports categories to avoid an assert * for showing 3D view panels in the properties space. */ |