Optimize a redundant QImage detach.
This commit is contained in:
parent
566f301636
commit
262b3eb335
1 changed files with 4 additions and 0 deletions
|
|
@ -294,6 +294,10 @@ QImage LoadFromFile(int id, int size, int index) {
|
||||||
|| false) {
|
|| false) {
|
||||||
return QImage();
|
return QImage();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This should remove a non necessary detach on Retina screens later.
|
||||||
|
result.setDevicePixelRatio(style::DevicePixelRatio());
|
||||||
|
|
||||||
crl::async([=, signature = std::move(signature)] {
|
crl::async([=, signature = std::move(signature)] {
|
||||||
// This should not happen (invalid signature),
|
// This should not happen (invalid signature),
|
||||||
// so we delay this check and fix only the next launch.
|
// so we delay this check and fix only the next launch.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue