summaryrefslogtreecommitdiff
path: root/src/wx/gl_video_view.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-08-19 20:50:26 +0200
committerCarl Hetherington <cth@carlh.net>2025-08-25 08:44:48 +0200
commit2fa3fe9d83adbf188b4fe39ddc46af7702c487fe (patch)
tree43e41fbd18e7b952296aefb3468121d900a462ef /src/wx/gl_video_view.cc
parent5932d16a8a9e265ce13408128f4434c6912be292 (diff)
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.
Diffstat (limited to 'src/wx/gl_video_view.cc')
-rw-r--r--src/wx/gl_video_view.cc2
1 files changed, 1 insertions, 1 deletions
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<const PlayerVideo> 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());