Fixed display of outline in box for share of QR code on non-retina.

This commit is contained in:
23rd 2024-09-27 18:51:39 +03:00 committed by John Preston
parent 2b0aa8e418
commit fbaa79f168

View file

@ -593,10 +593,12 @@ void FillPeerQrBox(
auto pen = st::activeLineFg->p; auto pen = st::activeLineFg->p;
pen.setWidth(st::defaultInputField.borderActive); pen.setWidth(st::defaultInputField.borderActive);
p.setPen(pen); p.setPen(pen);
const auto r = st::roundRadiusLarge
+ activewidth * 2.1 * style::DevicePixelRatio();
p.drawRoundedRect( p.drawRoundedRect(
widget->rect() - Margins(pen.width()), widget->rect() - Margins(pen.width()),
st::roundRadiusLarge + activewidth * 4.2, r,
st::roundRadiusLarge + activewidth * 4.2); r);
} }
}, widget->lifetime()); }, widget->lifetime());
counter++; counter++;