]> git.sesse.net Git - nageru/commitdiff
Work around a bogus compilation warning (it claimed the generated copy constructor...
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 1 Oct 2023 09:16:03 +0000 (11:16 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 1 Oct 2023 09:16:03 +0000 (11:16 +0200)
futatabi/jpeg_frame_view.cpp

index 7da8f14cea7d60d07f21361f1f6f2a521ad7fba0..6ab19482fb93772956036c19175b6ecef36262e3 100644 (file)
@@ -412,6 +412,7 @@ void JPEGFrameView::setFrame(shared_ptr<Frame> frame)
        lock_guard<mutex> lock(cache_mu);
        PendingDecode decode;
        decode.frame = std::move(frame);
+       decode.fade_alpha = 0.0f;
        pending_decodes.push_back(decode);
        any_pending_decodes.notify_all();
 }