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:
authorCampbell Barton <ideasman42@gmail.com>2020-05-03 10:55:39 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-05-03 11:01:20 +0300
commitccaab7268572f1640411309463009b3a3453b247 (patch)
tree300cebf59fa9457b25ad0f3abe9c836363126743 /source/blender/editors/interface/interface_handlers.c
parent5366eb89c6eb4057edfdf16eb42f31d34f6a0ba4 (diff)
BLF: use 'int' for internal glyph x,y bearing
These were stored as float but were originally cast from an int and were often cast back to int. Also use int pairs for dimensions values.
Diffstat (limited to 'source/blender/editors/interface/interface_handlers.c')
-rw-r--r--source/blender/editors/interface/interface_handlers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c
index 4d215105858..84be109b38e 100644
--- a/source/blender/editors/interface/interface_handlers.c
+++ b/source/blender/editors/interface/interface_handlers.c
@@ -2853,7 +2853,7 @@ static bool ui_textedit_set_cursor_pos_foreach_glyph(const char *UNUSED(str),
const rcti *glyph_step_bounds,
const int UNUSED(glyph_advance_x),
const rctf *glyph_bounds,
- const float UNUSED(glyph_bearing[2]),
+ const int UNUSED(glyph_bearing[2]),
void *user_data)
{
int *cursor_data = user_data;