mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 06:55:58 +00:00
Use crl::time/now instead of TimeMs/getms.
This commit is contained in:
@@ -47,7 +47,7 @@ FieldAutocomplete::FieldAutocomplete(QWidget *parent) : TWidget(parent)
|
||||
void FieldAutocomplete::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