summaryrefslogtreecommitdiff
path: root/src/ui/text.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-07-20 09:01:25 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-07-20 09:01:25 +0300
commitdc1528e89d48947780e00fc1a49ce57cccdfbfe5 (patch)
tree4bd888f70dcf7bdd3ad166b43176232c42920594 /src/ui/text.h
parent3ccdfae64b82d9716de1f94f7d81de9c8765b607 (diff)
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.
Diffstat (limited to 'src/ui/text.h')
-rw-r--r--src/ui/text.h2
1 files changed, 1 insertions, 1 deletions
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 {
217}; 217};
218 218
219iTextMetrics measure_WrapText (iWrapText *, int fontId); 219iTextMetrics measure_WrapText (iWrapText *, int fontId);
220void draw_WrapText (iWrapText *, int fontId, iInt2 pos, int color); 220iTextMetrics draw_WrapText (iWrapText *, int fontId, iInt2 pos, int color);
221 221
222SDL_Texture * glyphCache_Text (void); 222SDL_Texture * glyphCache_Text (void);
223 223