Commit 4c11fc9f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

gl: fix changing window size

parent dd617036
...@@ -262,16 +262,10 @@ static int Control (vout_display_t *vd, int query, va_list ap) ...@@ -262,16 +262,10 @@ static int Control (vout_display_t *vd, int query, va_list ap)
const vout_display_cfg_t *c = va_arg (ap, const vout_display_cfg_t *); const vout_display_cfg_t *c = va_arg (ap, const vout_display_cfg_t *);
const video_format_t *src = &vd->source; const video_format_t *src = &vd->source;
if (query == VOUT_DISPLAY_CHANGE_DISPLAY_SIZE) if (query == VOUT_DISPLAY_CHANGE_DISPLAY_SIZE && va_arg (ap, int))
{ {
bool force = false; vout_window_SetSize (sys->gl->surface,
c->display.width, c->display.height);
force = va_arg (ap, int);
if (force
&& (c->display.width != vd->cfg->display.width
|| c->display.height != vd->cfg->display.height)
&& vout_window_SetSize (sys->gl->surface,
c->display.width, c->display.height))
return VLC_EGENERIC; return VLC_EGENERIC;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment