Commit e31d3007 authored by Laurent Aimar's avatar Laurent Aimar

Revert "Updated sdl to use new VOUT_DISPLAY_CHANGE_DISPLAY_SIZE parameter."

This reverts commit b8dc2568.
In the case of SDL, the actual resize is done in VOUT_DISPLAY_CHANGE_DISPLAY_SIZE
without any risk of infinite loop.
parent ce750377
......@@ -477,13 +477,11 @@ static int Control(vout_display_t *vd, int query, va_list args)
case VOUT_DISPLAY_CHANGE_DISPLAY_SIZE: {
const vout_display_cfg_t *cfg = va_arg(args, const vout_display_cfg_t *);
const bool is_forced = (bool)va_arg(args, int);
/* */
if (is_forced)
sys->display = SDL_SetVideoMode(cfg->display.width,
cfg->display.height,
sys->display_bpp, sys->display_flags);
sys->display = SDL_SetVideoMode(cfg->display.width,
cfg->display.height,
sys->display_bpp, sys->display_flags);
if (!sys->display) {
sys->display = SDL_SetVideoMode(vd->cfg->display.width,
vd->cfg->display.height,
......
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