mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fix temporary reaction selector on Retina screens.
This commit is contained in:
@@ -232,7 +232,8 @@ Selector::Selector(
|
||||
const auto activeIndex = (state->pressed >= 0)
|
||||
? state->pressed
|
||||
: state->selected;
|
||||
const auto size = Ui::Emoji::GetSizeNormal();
|
||||
const auto realSize = Ui::Emoji::GetSizeNormal();
|
||||
const auto size = realSize / style::DevicePixelRatio();
|
||||
for (const auto &element : _elements) {
|
||||
const auto active = (index++ == activeIndex);
|
||||
if (active) {
|
||||
@@ -245,7 +246,7 @@ Selector::Selector(
|
||||
Ui::Emoji::Draw(
|
||||
p,
|
||||
emoji,
|
||||
size,
|
||||
realSize,
|
||||
element.geometry.x() + (width - size) / 2,
|
||||
element.geometry.y() + (height - size) / 2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user