remove calculating the space for the next annotation after the last line

This commit is contained in:
DeaTh-G 2025-02-04 17:01:14 +01:00
parent 0c721b0b83
commit 4eb4e0cddb
2 changed files with 3 additions and 3 deletions

View file

@ -624,7 +624,7 @@ ImVec2 MeasureCentredParagraph(const ImFont* font, float fontSize, float lineMar
x = std::max(x, textSize.x); x = std::max(x, textSize.x);
y += textSize.y + Scale(lineMargin); y += textSize.y + Scale(lineMargin);
if (paragraph.annotated) if (paragraph.annotated && i != (annotationRemovedLines.size() - 1))
y += fontSize * ANNOTATION_FONT_SIZE_MODIFIER; y += fontSize * ANNOTATION_FONT_SIZE_MODIFIER;
} }

View file

@ -292,9 +292,9 @@ void MessageWindow::Draw()
if (Config::Language == ELanguage::Japanese) if (Config::Language == ELanguage::Japanese)
{ {
textMarginX -= Scale(2.5f); 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(); bool isController = hid::IsInputDeviceController();