Browse Source

fix typo in comment

pull/6704/head
qndel 2 years ago committed by Gleb Mazovetskiy
parent
commit
9abfa51898
  1. 2
      Source/panels/charpanel.cpp

2
Source/panels/charpanel.cpp

@ -240,7 +240,7 @@ void DrawShadowString(const Surface &out, const PanelEntry &entry)
labelPosition += Displacement { -entry.labelLength - (IsSmallFontTall() ? 2 : 3), 0 };
}
// If the text is less tall then the field, we center it vertically relative to the field.
// If the text is less tall than the field, we center it vertically relative to the field.
// Otherwise, we draw from the top of the field.
const int textHeight = (c_count(wrapped, '\n') + 1) * GetLineHeight(wrapped, GameFont12);
const int labelHeight = std::max(PanelFieldHeight, textHeight);

Loading…
Cancel
Save