Commit b8dc2568 authored by Laurent Aimar's avatar Laurent Aimar

Updated sdl to use new VOUT_DISPLAY_CHANGE_DISPLAY_SIZE parameter.

parent d00aca23
...@@ -477,11 +477,13 @@ static int Control(vout_display_t *vd, int query, va_list args) ...@@ -477,11 +477,13 @@ static int Control(vout_display_t *vd, int query, va_list args)
case VOUT_DISPLAY_CHANGE_DISPLAY_SIZE: { case VOUT_DISPLAY_CHANGE_DISPLAY_SIZE: {
const vout_display_cfg_t *cfg = va_arg(args, const vout_display_cfg_t *); const vout_display_cfg_t *cfg = va_arg(args, const vout_display_cfg_t *);
const bool is_forced = (bool)va_arg(args, int);
/* */ /* */
sys->display = SDL_SetVideoMode(cfg->display.width, if (is_forced)
cfg->display.height, sys->display = SDL_SetVideoMode(cfg->display.width,
sys->display_bpp, sys->display_flags); cfg->display.height,
sys->display_bpp, sys->display_flags);
if (!sys->display) { if (!sys->display) {
sys->display = SDL_SetVideoMode(vd->cfg->display.width, sys->display = SDL_SetVideoMode(vd->cfg->display.width,
vd->cfg->display.height, 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