diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-04-23 09:53:31 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2018-04-23 09:55:12 +0200 |
commit | ddff0f1b7ea84f6a1321b8eb8a4d47317873d955 (patch) | |
tree | 28565c3a3d336559fcf149e1552ae237cc3d855d /src/Chatbar.cpp | |
parent | 1e0e68f9cda51c881b32a54d9eece71c1428f7ac (diff) |
Add word wrap for message board & TODO
TODO: Message board is now redrawn every frame.
Text should be modified to render on static & dynamic texture ->
text & static images on static texture, gif & video on dynamic texture
Diffstat (limited to 'src/Chatbar.cpp')
-rw-r--r-- | src/Chatbar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Chatbar.cpp b/src/Chatbar.cpp index bdfc75d..d775db4 100644 --- a/src/Chatbar.cpp +++ b/src/Chatbar.cpp @@ -114,7 +114,7 @@ namespace dchat string msg; msg.resize(chatbarMsgUtf8.size()); memcpy(&msg[0], chatbarMsgUtf8.data(), chatbarMsgUtf8.size()); - channel->getMessageBoard().addMessage(Message::buildFromString(channel->getLocalUser(), msg)); + channel->getMessageBoard().addMessage(new Message(channel->getLocalUser(), msg)); clear(); } } |