diff options
Diffstat (limited to 'avmedia/source/gtk/gtkplayer.cxx')
-rw-r--r-- | avmedia/source/gtk/gtkplayer.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/avmedia/source/gtk/gtkplayer.cxx b/avmedia/source/gtk/gtkplayer.cxx index bf73f4732c4a..08b5f10c5b6d 100644 --- a/avmedia/source/gtk/gtkplayer.cxx +++ b/avmedia/source/gtk/gtkplayer.cxx @@ -343,7 +343,11 @@ uno::Reference<::media::XPlayerWindow> return nullptr; m_pVideo = gtk_picture_new_for_paintable(GDK_PAINTABLE(m_pStream)); +#if GTK_CHECK_VERSION(4, 7, 2) + gtk_picture_set_content_fit(GTK_PICTURE(m_pVideo), GTK_CONTENT_FIT_FILL); +#else gtk_picture_set_keep_aspect_ratio(GTK_PICTURE(m_pVideo), false); +#endif gtk_widget_set_can_target(m_pVideo, false); gtk_widget_set_vexpand(m_pVideo, true); gtk_widget_set_hexpand(m_pVideo, true); |