From 52915ba4bcb8f82a7d8249df07130e4fc0e5bd32 Mon Sep 17 00:00:00 2001 From: Jeffrey Armstrong Date: Mon, 8 Jun 2020 14:36:34 -0400 Subject: Line wrapping now computed only once for proportional text unless requested by the renderer, providing better performance. --- main.F90 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'main.F90') diff --git a/main.F90 b/main.F90 index 9d8e7a4..126796b 100644 --- a/main.F90 +++ b/main.F90 @@ -92,7 +92,7 @@ implicit none else - initial_site = "gemini://lilarm/" + initial_site = "gemini://gemini.circumlunar.space/" end if @@ -210,6 +210,14 @@ implicit none call r%status_ready() end if + case (render_action_rewrap) + if(associated(first_line)) then + call r%report_status("Performing Layout") + call clear_line_breaks(first_line) + call layout_lines(first_line, r) + call r%status_ready() + end if + case (render_action_goto) if(index(input, "://") > 0) then desired_url = input -- cgit v1.2.3