Fix quick reaction button on Retina screens.

This commit is contained in:
John Preston 2021-12-30 14:32:52 +03:00
parent c5468a1111
commit 90821428d3
1 changed files with 3 additions and 4 deletions

View File

@ -285,6 +285,7 @@ Manager::Manager(
_shadowBuffer = QImage( _shadowBuffer = QImage(
_outer * ratio, _outer * ratio,
QImage::Format_ARGB32_Premultiplied); QImage::Format_ARGB32_Premultiplied);
_shadowBuffer.setDevicePixelRatio(ratio);
if (wheelEventsTarget) { if (wheelEventsTarget) {
stealWheelEvents(wheelEventsTarget); stealWheelEvents(wheelEventsTarget);
@ -592,10 +593,8 @@ void Manager::paintButton(
paintAllEmoji(p, button, scale, mainEmojiPosition); paintAllEmoji(p, button, scale, mainEmojiPosition);
p.restore(); p.restore();
} else { } else {
p.drawImage( const auto source = validateEmoji(frameIndex, scale);
mainEmojiPosition, p.drawImage(mainEmojiPosition, _cacheParts, source);
_cacheParts,
validateEmoji(frameIndex, scale));
} }
if (opacity != 1.) { if (opacity != 1.) {