mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-10 04:40:25 +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
|
||||
// the Control's rect_size.
|
||||
|
||||
Ref<Font> fontref = fontmap.count("Regular") ? fontmap["Regular"]
|
||||
: has_font("Regular", "Terminal")
|
||||
? get_font("Regular", "Terminal")
|
||||
: get_font("");
|
||||
Ref<Font> fontref;
|
||||
if (fontmap.count("Regular"))
|
||||
fontref = fontmap["Regular"];
|
||||
else if (has_font("Regular", "Terminal"))
|
||||
fontref = get_font("Regular", "Terminal");
|
||||
else
|
||||
fontref = get_font("");
|
||||
|
||||
cell_size = fontref->get_string_size("W");
|
||||
|
||||
rows = std::max(2, (int)floor(get_rect().size.y / cell_size.y));
|
||||
|
|
Loading…
Reference in a new issue