Skip to content

Commit

Permalink
display: reroute and deprecate display size event
Browse files Browse the repository at this point in the history
The window size should be determined by the window provider, not the
display plugin.
  • Loading branch information
Rémi Denis-Courmont committed May 20, 2018
1 parent 26255c2 commit a4942d9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions include/vlc_vout_display.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a4942d9

Please sign in to comment.