mirror of
https://github.com/telegramdesktop/tdesktop
synced 2024-12-14 18:34:49 +00:00
Fix radial loading and seek frame in PiP.
This commit is contained in:
parent
112c597556
commit
aeb994dd40
@ -1557,6 +1557,8 @@ void Pip::playbackPauseResume() {
|
||||
|
||||
void Pip::restartAtSeekPosition(crl::time position) {
|
||||
if (!_instance.info().video.cover.isNull()) {
|
||||
_preparedCoverStorage = QImage();
|
||||
_preparedCoverState = ThumbState::Empty;
|
||||
_instance.saveFrameToCover();
|
||||
}
|
||||
auto options = Streaming::PlaybackOptions();
|
||||
|
@ -496,7 +496,7 @@ void Pip::RendererGL::paintRadialLoading(
|
||||
int(std::round(fg.red() * fgAlpha + fade.red() * fadeAlpha)),
|
||||
int(std::round(fg.green() * fgAlpha + fade.green() * fadeAlpha)),
|
||||
int(std::round(fg.blue() * fgAlpha + fade.blue() * fadeAlpha)),
|
||||
fg.alphaF());
|
||||
fg.alpha());
|
||||
|
||||
_owner->paintRadialLoadingContent(p, newInner, color);
|
||||
}, kRadialLoadingOffset, true);
|
||||
|
Loading…
Reference in New Issue
Block a user