Fix vertical misalignment of multiline buffer messages

This commit is contained in:
2025-05-04 09:12:00 -05:00
parent 57d2aafd93
commit b3a64d140e

View File

@@ -1132,6 +1132,8 @@ void print_buf () {
moveTo = location(4, 1 + 12 * (LINES_IN_TEXT_WIN + line_offset - num_lines_total - text_buffer[message_idx].line_count));
sf::Text text;
line_style.applyTo(text, get_ui_scale());
// A spacing factor of 1.0 within multiline messages doesn't actually line up with other single buffer lines
text.setLineSpacing(0.85);
text.setString(message);
text.setPosition(moveTo);
draw_scale_aware_text(text_area_gworld(), text);