diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2013-03-15 13:41:27 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2013-03-15 13:41:27 (GMT) |
| commit | ca9ea8bb8ae457acb27de61f635115e433a8e981 (patch) | |
| tree | 2e5096aa014a77c4ed02070922e3449766def0c8 /src/preview | |
| parent | 73b6ff4efb4bbe31993a595987b9abc59a5a2e76 (diff) | |
| parent | 2aa483e0a2c142f46033f2f2a5285ff436afa957 (diff) | |
| download | powder-ca9ea8bb8ae457acb27de61f635115e433a8e981.zip powder-ca9ea8bb8ae457acb27de61f635115e433a8e981.tar.gz | |
Merge branch 'master' of github.com:FacialTurd/The-Powder-Toy
Diffstat (limited to 'src/preview')
| -rw-r--r-- | src/preview/Comment.h | 9 | ||||
| -rw-r--r-- | src/preview/PreviewView.cpp | 4 |
2 files changed, 7 insertions, 6 deletions
diff --git a/src/preview/Comment.h b/src/preview/Comment.h index 4bf7acb..1d84042 100644 --- a/src/preview/Comment.h +++ b/src/preview/Comment.h @@ -8,17 +8,18 @@ class SaveComment public: int authorID; std::string authorName; + std::string authorNameFormatted; std::string comment; - SaveComment(int userID, std::string username, std::string commentText): - authorID(userID), authorName(username), comment(commentText) + SaveComment(int userID, std::string username, std::string usernameFormatted, std::string commentText): + authorID(userID), authorName(username), authorNameFormatted(usernameFormatted), comment(commentText) { } SaveComment(const SaveComment & comment): - authorID(comment.authorID), authorName(comment.authorName), comment(comment.comment) + authorID(comment.authorID), authorName(comment.authorName), authorNameFormatted(comment.authorNameFormatted), comment(comment.comment) { } SaveComment(const SaveComment * comment): - authorID(comment->authorID), authorName(comment->authorName), comment(comment->comment) + authorID(comment->authorID), authorName(comment->authorName), authorNameFormatted(comment->authorNameFormatted), comment(comment->comment) { } }; diff --git a/src/preview/PreviewView.cpp b/src/preview/PreviewView.cpp index db38ccb..d9319f8 100644 --- a/src/preview/PreviewView.cpp +++ b/src/preview/PreviewView.cpp @@ -549,9 +549,9 @@ void PreviewView::NotifyCommentsChanged(PreviewModel * sender) } if(showAvatars) - tempUsername = new ui::Label(ui::Point(31, currentY+3), ui::Point(Size.X-((XRES/2) + 13), 16), comments->at(i)->authorName); + tempUsername = new ui::Label(ui::Point(31, currentY+3), ui::Point(Size.X-((XRES/2) + 13), 16), comments->at(i)->authorNameFormatted); else - tempUsername = new ui::Label(ui::Point(5, currentY+3), ui::Point(Size.X-((XRES/2) + 13), 16), comments->at(i)->authorName); + tempUsername = new ui::Label(ui::Point(5, currentY+3), ui::Point(Size.X-((XRES/2) + 13), 16), comments->at(i)->authorNameFormatted); tempUsername->Appearance.HorizontalAlign = ui::Appearance::AlignLeft; tempUsername->Appearance.VerticalAlign = ui::Appearance::AlignBottom; currentY += 16; |
