diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-01 14:01:27 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-01 14:01:27 +1000 |
commit | e29a46d100164bdd2747278fa9336f889721b16b (patch) | |
tree | 41867241e3982d1dcdd874ae7af3f92f161d0014 /source/rendering/StarTextPainter.hpp | |
parent | e28394b10be26cbf2ce0036e6325af2ff637d1e4 (diff) |
Fix text wrapping splitting inside of words with color codes in them
Diffstat (limited to 'source/rendering/StarTextPainter.hpp')
-rw-r--r-- | source/rendering/StarTextPainter.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/rendering/StarTextPainter.hpp b/source/rendering/StarTextPainter.hpp index 0da4904..f1bd194 100644 --- a/source/rendering/StarTextPainter.hpp +++ b/source/rendering/StarTextPainter.hpp @@ -67,8 +67,8 @@ public: int stringWidth(StringView s); - typedef function<bool(StringView text, int line)> WrapTextCallback; - typedef function<bool(StringView command)> WrapCommandsCallback; + typedef function<bool(StringView, int)> WrapTextCallback; + typedef function<bool(StringView, int)> WrapCommandsCallback; void processWrapText(StringView s, Maybe<unsigned> wrapWidth, WrapTextCallback textFunc, WrapCommandsCallback commandFunc = WrapCommandsCallback(), bool includeCommandSides = false); List<StringView> wrapTextViews(StringView s, Maybe<unsigned> wrapWidth); |