mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-12 21:50:26 +01:00
Reformat code causing clang-format clashes
VSCode and the clang-format git hook disagreed about how this one should be formatted, so it kept changing.
This commit is contained in:
parent
0e6334db96
commit
f48e082b54
1 changed files with 8 additions and 4 deletions
|
@ -554,10 +554,14 @@ void Terminal::update_size() {
|
||||||
// Recalculates the cell_size and number of cols/rows based on font size and
|
// Recalculates the cell_size and number of cols/rows based on font size and
|
||||||
// the Control's rect_size.
|
// the Control's rect_size.
|
||||||
|
|
||||||
Ref<Font> fontref = fontmap.count("Regular") ? fontmap["Regular"]
|
Ref<Font> fontref;
|
||||||
: has_font("Regular", "Terminal")
|
if (fontmap.count("Regular"))
|
||||||
? get_font("Regular", "Terminal")
|
fontref = fontmap["Regular"];
|
||||||
: get_font("");
|
else if (has_font("Regular", "Terminal"))
|
||||||
|
fontref = get_font("Regular", "Terminal");
|
||||||
|
else
|
||||||
|
fontref = get_font("");
|
||||||
|
|
||||||
cell_size = fontref->get_string_size("W");
|
cell_size = fontref->get_string_size("W");
|
||||||
|
|
||||||
rows = std::max(2, (int)floor(get_rect().size.y / cell_size.y));
|
rows = std::max(2, (int)floor(get_rect().size.y / cell_size.y));
|
||||||
|
|
Loading…
Reference in a new issue