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