Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/rendering/StarTextPainter.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-07-01 14:01:27 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-07-01 14:01:27 +1000
commite29a46d100164bdd2747278fa9336f889721b16b (patch)
tree41867241e3982d1dcdd874ae7af3f92f161d0014 /source/rendering/StarTextPainter.hpp
parente28394b10be26cbf2ce0036e6325af2ff637d1e4 (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.hpp4
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);