Skip to content

Commit 09738cc

Browse files
jonko0493AntonioND
authored andcommitted
rich text: Ensure final position is returned on dry run with cursor
Commit 8932de1 had a minor bug in it that I only just now noticed -- the cursor positions in `DSF_StringRenderDryRunWithCursor` are only returned when string length is 0. This is definitely just a rebase error -- my apologies for not getting around to rebasing it properly sooner!
1 parent 3f0fc1a commit 09738cc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

source/libdsf/dsf.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,8 @@ dsf_error DSF_StringRenderDryRunWithCursor(dsf_handle handle, const char *str,
587587

588588
*size_x = max_x;
589589
*size_y = max_y + font->line_height;
590+
*final_x = font->pointer_x;
591+
*final_y = font->pointer_y;
590592

591593
return ret;
592594
}

0 commit comments

Comments
 (0)