5 Commits
Author SHA1 Message Date
Matthew Fioravante 5322ac0fe5 WordWrap: use StringView
This makes WordWrap function zero-copy internally
2020-08-23 14:29:45 -04:00
Carsten Teibes b8c0c2bcb0 macOS: fix wordwrap test compilation 2019-12-21 20:21:35 +01:00
Ghabry ccf052901e Convert all unit tests to a single doctest executable 2019-12-07 13:56:57 +01:00
Matthew Fioravante d810160406 Switch from gtest to doctest 2019-01-04 19:32:38 -05:00
Matthew Fioravante da4cb03f42 Refactor wordwrap
* Fixes hang when string.size() > 50 characters and has no spaces.
* Fixes width used when word wrap is called. Current one cuts too early.
* Unit tests for different strings
* Graphical adjustments to ensure long lines get rendered properly. The
  standard RPG_RT fonts use 50 characters. Previously we would render
  half of the 51st character as the drawing bitmap was not bounded
  correctly.
2019-01-04 19:32:38 -05:00