mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 12:51:42 +00:00
remove calculating the space for the next annotation after the last line
This commit is contained in:
parent
0c721b0b83
commit
4eb4e0cddb
2 changed files with 3 additions and 3 deletions
|
|
@ -624,7 +624,7 @@ ImVec2 MeasureCentredParagraph(const ImFont* font, float fontSize, float lineMar
|
|||
x = std::max(x, textSize.x);
|
||||
y += textSize.y + Scale(lineMargin);
|
||||
|
||||
if (paragraph.annotated)
|
||||
if (paragraph.annotated && i != (annotationRemovedLines.size() - 1))
|
||||
y += fontSize * ANNOTATION_FONT_SIZE_MODIFIER;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -292,9 +292,9 @@ void MessageWindow::Draw()
|
|||
if (Config::Language == ELanguage::Japanese)
|
||||
{
|
||||
textMarginX -= Scale(2.5f);
|
||||
textMarginY -= Scale(7.5f);
|
||||
textMarginY -= Scale(2.0f);
|
||||
|
||||
textY += Scale(lines.size() % 2 == 0 ? 8.5f : 15.5f);
|
||||
textY += Scale(lines.size() % 2 == 0 ? 1.5f : 8.0f);
|
||||
}
|
||||
|
||||
bool isController = hid::IsInputDeviceController();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue