mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-01 15:49:51 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user