mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-07 17:16:00 -05:00
Fix exact image match not wokring when using images with alpha channel
The screenshots taken from video sources were using the image format Format_RGBX8888 instead of Format_RGBA8888. The alpha channel of screenshots taken from OBS would be blended with a black background while this step would be not performed for files loaded to macht match the video sources.
This commit is contained in:
@@ -79,7 +79,7 @@ void AdvSSScreenshotObj::Copy()
|
||||
uint8_t *videoData = nullptr;
|
||||
uint32_t videoLinesize = 0;
|
||||
|
||||
image = QImage(cx, cy, QImage::Format::Format_RGBX8888);
|
||||
image = QImage(cx, cy, QImage::Format::Format_RGBA8888);
|
||||
|
||||
if (gs_stagesurface_map(stagesurf, &videoData, &videoLinesize)) {
|
||||
int linesize = image.bytesPerLine();
|
||||
|
||||
Reference in New Issue
Block a user