[vlc-commits] [Git][videolan/vlc][3.0.x] caopengllayer: restore vout_display_SendEventDisplaySize

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Thu Aug 3 20:18:39 UTC 2023



Jean-Baptiste Kempf pushed to branch 3.0.x at VideoLAN / VLC


Commits:
5d4ade56 by Alexandre Janniaux at 2023-08-03T20:03:09+00:00
caopengllayer: restore vout_display_SendEventDisplaySize

VLC 4.0 doesn't need that but 3.0 still has no windowing module, leading
to display size not being reported to the subtitle text renderer, and
leading to blurry subtitles and OSD.

Because the size is coming from the display, it means that the first
time the subtitle is displayed, it will always be blurry depending on
the real display size and original media size.

Regression from 8ff56952174af8e7a7d4ae61a413f88317c948a1.

Fixes #27793

- - - - -


1 changed file:

- modules/video_output/caopengllayer.m


Changes:

=====================================
modules/video_output/caopengllayer.m
=====================================
@@ -841,6 +841,10 @@ shouldInheritContentsScale:(CGFloat)newScale
             sys->cfg.display.width = newSize.width;
             sys->cfg.display.height = newSize.height;
         }
+
+        /* Workaround: there's no window module, so signal the correct size to the core. */
+        vout_display_SendEventDisplaySize (_voutDisplay,
+            newSize.width, newSize.height);
     }
 }
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/5d4ade565056b7ab7323afdf8078aa54658b47d3

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/5d4ade565056b7ab7323afdf8078aa54658b47d3
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list