From 8c5ec9fa5e545e26ed9cbf490bc3dcdb044fbaca Mon Sep 17 00:00:00 2001 From: Jonathan Thomas Date: Wed, 28 May 2025 17:18:14 -0500 Subject: [PATCH] Removing depreciated calls to alphaChannel() --- src/effects/LensFlare.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/effects/LensFlare.cpp b/src/effects/LensFlare.cpp index 68209fe2..e59b35cd 100644 --- a/src/effects/LensFlare.cpp +++ b/src/effects/LensFlare.cpp @@ -329,7 +329,7 @@ LensFlare::GetFrame(std::shared_ptr frame, int64_t f) } // Get original alpha - QImage origAlpha = img->alphaChannel(); + QImage origAlpha = img->convertToFormat(QImage::Format_Alpha8); // Additive-light the overlay onto your frame QPainter p(img.get()); @@ -340,7 +340,7 @@ LensFlare::GetFrame(std::shared_ptr frame, int64_t f) // Rebuild alpha = max(orig, flareƗI) QImage finalA(w,h, QImage::Format_Alpha8); - auto overlayA = overlay.alphaChannel(); + auto overlayA = overlay.convertToFormat(QImage::Format_Alpha8); for (int yy=0; yy