File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -323,14 +323,21 @@ static bool screenshot_dump(
323323 video_driver_state_t * video_st = video_state_get_ptr ();
324324 if (video_st )
325325 {
326- state -> out_width = (video_st -> frame_cache_width <= 4 )
326+ state -> out_width = (video_st -> frame_cache_width <= 4 )
327327 ? video_st -> av_info .geometry .base_width
328328 : video_st -> frame_cache_width ;
329- state -> out_height = (video_st -> frame_cache_height <= 4 )
329+ state -> out_height = (video_st -> frame_cache_height <= 4 )
330330 ? video_st -> av_info .geometry .base_height
331331 : video_st -> frame_cache_height ;
332332 }
333333
334+ /* Fallback to display size if smaller than core output */
335+ if (state -> out_width > width || state -> out_height > height )
336+ {
337+ state -> out_width = width ;
338+ state -> out_height = height ;
339+ }
340+
334341 state -> flags |= SS_TASK_FLAG_SILENCE ;
335342 }
336343
You can’t perform that action at this time.
0 commit comments