diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-01 23:20:25 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-01 23:20:25 +1000 |
commit | 5a56f8b81a10f3a91672055c3c6b7e9bde86efce (patch) | |
tree | 1972155ea630d5891ff42783f255f52cf8896171 /source/rendering/StarTextPainter.hpp | |
parent | e29a46d100164bdd2747278fa9336f889721b16b (diff) |
Re-optimize text splitting while maintaining vanilla behavior
Diffstat (limited to 'source/rendering/StarTextPainter.hpp')
-rw-r--r-- | source/rendering/StarTextPainter.hpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/rendering/StarTextPainter.hpp b/source/rendering/StarTextPainter.hpp index f1bd194..e006981 100644 --- a/source/rendering/StarTextPainter.hpp +++ b/source/rendering/StarTextPainter.hpp @@ -68,8 +68,7 @@ public: 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); + bool processWrapText(StringView s, Maybe<unsigned> wrapWidth, WrapTextCallback textFunc); List<StringView> wrapTextViews(StringView s, Maybe<unsigned> wrapWidth); StringList wrapText(StringView s, Maybe<unsigned> wrapWidth); |