Fix quick reaction button on Retina screens.
This commit is contained in:
parent
c5468a1111
commit
90821428d3
|
@ -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.) {
|
||||||
|
|
Loading…
Reference in New Issue