From dc1528e89d48947780e00fc1a49ce57cccdfbfe5 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Tue, 20 Jul 2021 09:01:25 +0300 Subject: Revising InputWidget `InputWidget` needs to be better at handling multiple lines. The previous implementation assumed that the content was short enough to be fully redrawn each frame, which is not a great idea when you have thousands of lines. --- src/ui/text.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui/text.h') diff --git a/src/ui/text.h b/src/ui/text.h index d779dd96..d4f820d4 100644 --- a/src/ui/text.h +++ b/src/ui/text.h @@ -217,7 +217,7 @@ struct Impl_WrapText { }; iTextMetrics measure_WrapText (iWrapText *, int fontId); -void draw_WrapText (iWrapText *, int fontId, iInt2 pos, int color); +iTextMetrics draw_WrapText (iWrapText *, int fontId, iInt2 pos, int color); SDL_Texture * glyphCache_Text (void); -- cgit v1.2.3