Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorHarley Acheson <harley.acheson@gmail.com>2022-09-24 18:23:36 +0300
committerHarley Acheson <harley.acheson@gmail.com>2022-09-24 18:23:36 +0300
commit72933ebe96a02e96c9740e33d0a3e44d5b6365f1 (patch)
treead1d7cb835f043e5eb2a603908eb584e41274343 /source
parent1b46d57f67c78648e15305cb71035b0e799aac60 (diff)
BLF: Correctly Set Default Font Size
Commit cd1631b17dd0 fails to scale the global_font_size by UI scale in BLF_set_default. Generally used for simple text output like statistics. See D16053 for more details. Differential Revision: https://developer.blender.org/D16053 Own Code
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenfont/intern/blf_default.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenfont/intern/blf_default.c b/source/blender/blenfont/intern/blf_default.c
index a521d65fe30..738683284e3 100644
--- a/source/blender/blenfont/intern/blf_default.c
+++ b/source/blender/blenfont/intern/blf_default.c
@@ -45,7 +45,7 @@ int BLF_set_default(void)
{
ASSERT_DEFAULT_SET;
- BLF_size(global_font_default, global_font_size);
+ BLF_size(global_font_default, global_font_size * U.dpi_fac);
return global_font_default;
}