UI: Use normal source width for screenshots

Fixes an issue where filters that resize a source, like "Crop/Pad" or
"Scaling/Aspect Ratio", change the texture but the new source size gets
ignored, effectively either cropping the screenshot or giving it black
borders.
This commit is contained in:
gxalpha
2024-01-04 23:14:18 +01:00
committed by Lain
parent 519c19aa4a
commit 089fa8e8d3
+2 -2
View File
@@ -68,8 +68,8 @@ void ScreenshotObj::Screenshot()
OBSSource source = OBSGetStrongRef(weakSource);
if (source) {
cx = obs_source_get_base_width(source);
cy = obs_source_get_base_height(source);
cx = obs_source_get_width(source);
cy = obs_source_get_height(source);
} else {
obs_video_info ovi;
obs_get_video_info(&ovi);