From 3996e8882d4495c224aba66bf6447d4161521d5b Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sat, 12 Jan 2013 21:12:25 +0100 Subject: [PATCH] vo_sdl: fix for rename of a function in SDL2's interface --- video/out/vo_sdl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/video/out/vo_sdl.c b/video/out/vo_sdl.c index 68ffa8cf53..b32af3ec3d 100644 --- a/video/out/vo_sdl.c +++ b/video/out/vo_sdl.c @@ -378,7 +378,8 @@ static void set_fullscreen(struct vo *vo, int fs) SDL_SetWindowDisplayMode(vc->window, NULL); else { SDL_DisplayMode mode; - if (!SDL_GetCurrentDisplayMode(SDL_GetWindowDisplay(vc->window), &mode)) + if (!SDL_GetCurrentDisplayMode(SDL_GetWindowDisplayIndex(vc->window), + &mode)) SDL_SetWindowDisplayMode(vc->window, &mode); } @@ -927,7 +928,8 @@ static void update_screeninfo(struct vo *vo) { struct priv *vc = vo->priv; SDL_DisplayMode mode; - if (SDL_GetCurrentDisplayMode(SDL_GetWindowDisplay(vc->window), &mode)) { + if (SDL_GetCurrentDisplayMode(SDL_GetWindowDisplayIndex(vc->window), + &mode)) { mp_msg(MSGT_VO, MSGL_ERR, "[sdl] SDL_GetCurrentDisplayMode failed\n"); return; }