Fix vertical misalignment of multiline buffer messages
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user