diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-07-20 09:01:25 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-07-20 09:01:25 +0300 |
commit | dc1528e89d48947780e00fc1a49ce57cccdfbfe5 (patch) | |
tree | 4bd888f70dcf7bdd3ad166b43176232c42920594 /src/ui/text.h | |
parent | 3ccdfae64b82d9716de1f94f7d81de9c8765b607 (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.h | 2 |
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 | ||
219 | iTextMetrics measure_WrapText (iWrapText *, int fontId); | 219 | iTextMetrics measure_WrapText (iWrapText *, int fontId); |
220 | void draw_WrapText (iWrapText *, int fontId, iInt2 pos, int color); | 220 | iTextMetrics draw_WrapText (iWrapText *, int fontId, iInt2 pos, int color); |
221 | 221 | ||
222 | SDL_Texture * glyphCache_Text (void); | 222 | SDL_Texture * glyphCache_Text (void); |
223 | 223 | ||