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
diff options
context:
space:
mode:
authorHarley Acheson <harley.acheson@gmail.com>2021-08-25 23:30:00 +0300
committerHarley Acheson <harley.acheson@gmail.com>2021-08-25 23:30:00 +0300
commit5b751c95f4e58c5f56b1af61c835b4537f19f43c (patch)
tree139e884c0d42c20af4394c893a3e8d5904371e9b /source/blender/blenfont/intern/blf_default.c
parent518b97e674a9e7cdc91bc4048a89eb8a8b37db0b (diff)
BLF: Remove ASCII-only Code Paths
Remove redundant code for drawing text strings that contain only ASCII. See D12293 for much more detail. Differential Revision: https://developer.blender.org/D12293 Reviewed by Campbell Barton
Diffstat (limited to 'source/blender/blenfont/intern/blf_default.c')
-rw-r--r--source/blender/blenfont/intern/blf_default.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/source/blender/blenfont/intern/blf_default.c b/source/blender/blenfont/intern/blf_default.c
index 1b458e8aaef..2bac0bf8904 100644
--- a/source/blender/blenfont/intern/blf_default.c
+++ b/source/blender/blenfont/intern/blf_default.c
@@ -77,14 +77,3 @@ void BLF_draw_default(float x, float y, float z, const char *str, const size_t s
BLF_position(global_font_default, x, y, z);
BLF_draw(global_font_default, str, str_len);
}
-
-/* same as above but call 'BLF_draw_ascii' */
-void BLF_draw_default_ascii(float x, float y, float z, const char *str, const size_t str_len)
-{
- ASSERT_DEFAULT_SET;
-
- const uiStyle *style = UI_style_get();
- BLF_size(global_font_default, style->widgetlabel.points, global_font_dpi);
- BLF_position(global_font_default, x, y, z);
- BLF_draw_ascii(global_font_default, str, str_len); /* XXX, use real length */
-}