[vlc-commits] display: reroute and deprecate display size event
    Rémi Denis-Courmont 
    git at videolan.org
       
    Sun May 20 19:52:08 CEST 2018
    
    
  
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri May 18 21:18:47 2018 +0300| [a4942d980a4d92ab8819b019d47804d43410efb2] | committer: Rémi Denis-Courmont
display: reroute and deprecate display size event
The window size should be determined by the window provider, not the
display plugin.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a4942d980a4d92ab8819b019d47804d43410efb2
---
 include/vlc_vout_display.h | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/include/vlc_vout_display.h b/include/vlc_vout_display.h
index edc1238aee..e70a20ad8e 100644
--- a/include/vlc_vout_display.h
+++ b/include/vlc_vout_display.h
@@ -313,10 +313,13 @@ static inline void vout_display_SendEvent(vout_display_t *vd, int query, ...)
     va_end(args);
 }
 
-static inline void vout_display_SendEventDisplaySize(vout_display_t *vd, int width, int height)
+VLC_DEPRECATED /* Use vout_window_ReportSize() in window provider instead. */
+static inline void vout_display_SendEventDisplaySize(vout_display_t *vd,
+                                                     int width, int height)
 {
-    vout_display_SendEvent(vd, VOUT_DISPLAY_EVENT_DISPLAY_SIZE, width, height);
+    vout_window_ReportSize(vd->cfg->window, width, height);
 }
+
 static inline void vout_display_SendEventPicturesInvalid(vout_display_t *vd)
 {
     vout_display_SendEvent(vd, VOUT_DISPLAY_EVENT_PICTURES_INVALID);
    
    
More information about the vlc-commits
mailing list