From 2fa3fe9d83adbf188b4fe39ddc46af7702c487fe Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 19 Aug 2025 20:50:26 +0200 Subject: Fix incorrect display when cropping unoptimised video with the OpenGL renderer (#3075). Previously we wrongly tried to apply crop to videos in Optimisation::NONE, which are already cropped and {letter,pillar}boxed. --- src/wx/gl_video_view.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/wx/gl_video_view.cc b/src/wx/gl_video_view.cc index 8a9ef0cdd..bb2b47b23 100644 --- a/src/wx/gl_video_view.cc +++ b/src/wx/gl_video_view.cc @@ -751,7 +751,7 @@ GLVideoView::set_image(shared_ptr pv) if (sizing_changed) { const auto video = _optimisation == Optimisation::NONE - ? Rectangle(canvas_size, x_offset, y_offset, out_size, crop) + ? Rectangle(canvas_size, x_offset, y_offset, out_size, Crop{}) : Rectangle(canvas_size, inter_position.x + x_offset, inter_position.y + y_offset, inter_size, crop); glBufferSubData(GL_ARRAY_BUFFER, array_buffer_video_offset, video.size(), video.vertices()); -- cgit v1.2.3