Fix build for MSVC.

This commit is contained in:
John Preston 2024-11-28 20:33:13 +04:00
parent f13740cb7f
commit 18aaf3cc93
2 changed files with 2 additions and 3 deletions

View file

@ -125,8 +125,8 @@ int PaintRightButton(QPainter &p, const PaintContext &context) {
.position = QPoint(
left + size.height() / 2,
top + (st::dialogRowOpenBotHeight - rightButton->text.minHeight()) / 2),
.availableWidth = size.width() - size.height() / 2,
.outerWidth = size.width() - size.height() / 2,
.availableWidth = size.width() - size.height() / 2,
.elisionLines = 1,
});
return size.width() + st::dialogsUnreadPadding;

View file

@ -262,7 +262,6 @@ bool RecentRow::refreshBadge() {
QSize RecentRow::rightActionSize() const {
if (_mainAppText) {
const auto &font = st::dialogRowOpenBotTextStyle.font;
return QSize(
_mainAppText->maxWidth() + _mainAppText->minHeight(),
st::dialogRowOpenBotHeight);
@ -314,8 +313,8 @@ void RecentRow::rightActionPaint(
+ (st::dialogRowOpenBotHeight - _mainAppText->minHeight()) / 2;
_mainAppText->draw(p, {
.position = QPoint(x + size.height() / 2, y + top),
.availableWidth = outerWidth,
.outerWidth = outerWidth,
.availableWidth = outerWidth,
.elisionLines = 1,
});
}