mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Use crl::time/now instead of TimeMs/getms.
This commit is contained in:
@@ -186,7 +186,7 @@ void EmojiColorPicker::updateSize() {
|
||||
void EmojiColorPicker::paintEvent(QPaintEvent *e) {
|
||||
Painter p(this);
|
||||
|
||||
auto opacity = _a_opacity.current(getms(), _hiding ? 0. : 1.);
|
||||
auto opacity = _a_opacity.current(crl::now(), _hiding ? 0. : 1.);
|
||||
if (opacity < 1.) {
|
||||
if (opacity > 0.) {
|
||||
p.setOpacity(opacity);
|
||||
|
Reference in New Issue
Block a user