mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix video thumbnail in PiP raster renderer.
This commit is contained in:
parent
a27ef55ff8
commit
32c7964e8c
1 changed files with 6 additions and 10 deletions
|
@ -167,16 +167,12 @@ QImage Pip::RendererSW::staticContentByRequest(
|
||||||
}
|
}
|
||||||
_preparedStaticKey = image.cacheKey();
|
_preparedStaticKey = image.cacheKey();
|
||||||
_preparedStaticRequest = request;
|
_preparedStaticRequest = request;
|
||||||
//_preparedCoverStorage = Streaming::PrepareByRequest(
|
_preparedStaticContent = Images::Round(
|
||||||
// _instance.info().video.cover,
|
Images::Prepare(
|
||||||
// false,
|
image,
|
||||||
// _instance.info().video.rotation,
|
request.resize,
|
||||||
// request,
|
{ .outer = request.outer / style::DevicePixelRatio() }),
|
||||||
// std::move(_preparedCoverStorage));
|
request.rounding);
|
||||||
_preparedStaticContent = Images::Round(Images::Prepare(
|
|
||||||
image,
|
|
||||||
request.resize,
|
|
||||||
{ .outer = request.outer }), request.rounding);
|
|
||||||
|
|
||||||
return _preparedStaticContent;
|
return _preparedStaticContent;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue