Skip to content

Commit

Permalink
fix ampersand bug on themed tooltips (#2481)
Browse files Browse the repository at this point in the history
  • Loading branch information
adipose committed Jan 15, 2024
1 parent e5f3be8 commit 8339e74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mpc-hc/CMPCThemeToolTipCtrl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ void CMPCThemeToolTipCtrl::drawText(CDC& dc, CMPCThemeToolTipCtrl* tt, CRect& re
rect.DeflateRect(6, 2);
if (maxWidth == -1) {
if (calcRect) {
dc.DrawText(text, rect, DT_LEFT | DT_SINGLELINE | calcStyle);
dc.DrawText(text, rect, DT_LEFT | DT_SINGLELINE | DT_NOPREFIX | calcStyle);
} else {
dc.DrawText(text, rect, DT_VCENTER | DT_CENTER | DT_SINGLELINE);
dc.DrawText(text, rect, DT_VCENTER | DT_CENTER | DT_SINGLELINE | DT_NOPREFIX);
}
} else {
dc.DrawText(text, rect, DT_LEFT | DT_WORDBREAK | calcStyle);
dc.DrawText(text, rect, DT_LEFT | DT_WORDBREAK | DT_NOPREFIX | calcStyle);
}
rect.InflateRect(6, 2); //when calculating, put it back

Expand Down

0 comments on commit 8339e74

Please sign in to comment.