diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-01-25 21:26:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-25 21:26:07 +0100 |
commit | 7f0b5a373aebcfd3f798c05155b70edbe3e3fb20 (patch) | |
tree | 999d57053e4a10c0a9b50147a618d87241721f45 /modules/gdnative/text/text_server_gdnative.cpp | |
parent | babdffe1740184a6a7727799455fc6d549703756 (diff) | |
parent | 29e5dd06c7b3ccc5f07a805010df63a3cf90c039 (diff) |
Merge pull request #44989 from vnen/gdnative-new-api
New API for GDNative
Diffstat (limited to 'modules/gdnative/text/text_server_gdnative.cpp')
-rw-r--r-- | modules/gdnative/text/text_server_gdnative.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gdnative/text/text_server_gdnative.cpp b/modules/gdnative/text/text_server_gdnative.cpp index f670d4af6f..f7a3cb8135 100644 --- a/modules/gdnative/text/text_server_gdnative.cpp +++ b/modules/gdnative/text/text_server_gdnative.cpp @@ -703,12 +703,12 @@ void GDAPI godot_glyph_set_offset(godot_glyph *p_self, const godot_vector2 *p_of self->y_off = offset->y; } -godot_real GDAPI godot_glyph_get_advance(const godot_glyph *p_self) { +godot_float GDAPI godot_glyph_get_advance(const godot_glyph *p_self) { const TextServer::Glyph *self = (const TextServer::Glyph *)p_self; return self->advance; } -void GDAPI godot_glyph_set_advance(godot_glyph *p_self, godot_real p_advance) { +void GDAPI godot_glyph_set_advance(godot_glyph *p_self, godot_float p_advance) { TextServer::Glyph *self = (TextServer::Glyph *)p_self; self->advance = p_advance; } |