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

gl: fix changing window size

parent dd617036
...@@ -262,17 +262,11 @@ static int Control (vout_display_t *vd, int query, va_list ap) ...@@ -262,17 +262,11 @@ 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); return VLC_EGENERIC;
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;
} }
vout_display_place_t place; vout_display_place_t place;
......
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