summaryrefslogtreecommitdiff
path: root/plugins/Utils/mir_smileys.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Utils/mir_smileys.cpp')
-rw-r--r--plugins/Utils/mir_smileys.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Utils/mir_smileys.cpp b/plugins/Utils/mir_smileys.cpp
index 1c27bd67fc..6ecd7ce27b 100644
--- a/plugins/Utils/mir_smileys.cpp
+++ b/plugins/Utils/mir_smileys.cpp
@@ -236,10 +236,10 @@ SIZE GetTextSize(HDC hdcMem, const TCHAR *szText, SortedList *plText, UINT uText
TextPiece *piece = (TextPiece *)plText->items[i];
if (piece->type == TEXT_PIECE_TYPE_TEXT) {
- RECT text_rc = { 0, 0, 0x7FFFFFFF, 0x7FFFFFFF };
+ RECT rc = { 0, 0, 0x7FFFFFFF, 0x7FFFFFFF };
- DrawText(hdcMem, &szText[piece->start_pos], piece->len, &text_rc, DT_CALCRECT | uTextFormat);
- text_size.cx = text_size.cx + text_rc.right - text_rc.left;
+ DrawText(hdcMem, &szText[piece->start_pos], piece->len, &rc, DT_CALCRECT | uTextFormat);
+ text_size.cx = text_size.cx + rc.right - rc.left;
}
else {
double factor;