2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Typing animations from android.

This commit is contained in:
John Preston
2016-12-01 22:20:33 +03:00
parent 2b3631f3ae
commit 8958ae0377
125 changed files with 1031 additions and 669 deletions

View File

@@ -308,14 +308,14 @@ void Gif::ensureAnimation() const {
}
}
bool Gif::isRadialAnimation(uint64 ms) const {
bool Gif::isRadialAnimation(TimeMs ms) const {
if (!_animation || !_animation->radial.animating()) return false;
_animation->radial.step(ms);
return _animation && _animation->radial.animating();
}
void Gif::step_radial(uint64 ms, bool timer) {
void Gif::step_radial(TimeMs ms, bool timer) {
if (timer) {
update();
} else {
@@ -811,7 +811,7 @@ void File::step_thumbOver(float64 ms, bool timer) {
}
}
void File::step_radial(uint64 ms, bool timer) {
void File::step_radial(TimeMs ms, bool timer) {
if (timer) {
Ui::repaintInlineItem(this);
} else {
@@ -1319,14 +1319,14 @@ void Game::prepareThumb(int width, int height) const {
}
}
bool Game::isRadialAnimation(uint64 ms) const {
bool Game::isRadialAnimation(TimeMs ms) const {
if (!_radial || !_radial->animating()) return false;
_radial->step(ms);
return _radial && _radial->animating();
}
void Game::step_radial(uint64 ms, bool timer) {
void Game::step_radial(TimeMs ms, bool timer) {
if (timer) {
update();
} else {