Fix MSVC warnings, rename shadowed variables, fix uninitialized values, change warnings=all to use /W4.
This commit is contained in:
parent
5b7f62af55
commit
0103af1ddd
240 changed files with 3390 additions and 3431 deletions
|
|
@ -2443,17 +2443,17 @@ void TextMesh::_create_mesh_array(Array &p_arr) const {
|
|||
TS->shaped_text_clear(text_rid);
|
||||
TS->shaped_text_set_direction(text_rid, text_direction);
|
||||
|
||||
String text = (uppercase) ? TS->string_to_upper(xl_text, language) : xl_text;
|
||||
TS->shaped_text_add_string(text_rid, text, font->get_rids(), font_size, font->get_opentype_features(), language);
|
||||
String txt = (uppercase) ? TS->string_to_upper(xl_text, language) : xl_text;
|
||||
TS->shaped_text_add_string(text_rid, txt, font->get_rids(), font_size, font->get_opentype_features(), language);
|
||||
for (int i = 0; i < TextServer::SPACING_MAX; i++) {
|
||||
TS->shaped_text_set_spacing(text_rid, TextServer::SpacingType(i), font->get_spacing(TextServer::SpacingType(i)));
|
||||
}
|
||||
|
||||
Array stt;
|
||||
if (st_parser == TextServer::STRUCTURED_TEXT_CUSTOM) {
|
||||
GDVIRTUAL_CALL(_structured_text_parser, st_args, text, stt);
|
||||
GDVIRTUAL_CALL(_structured_text_parser, st_args, txt, stt);
|
||||
} else {
|
||||
stt = TS->parse_structured_text(st_parser, st_args, text);
|
||||
stt = TS->parse_structured_text(st_parser, st_args, txt);
|
||||
}
|
||||
TS->shaped_text_set_bidi_override(text_rid, stt);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue