1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-13 02:16:40 +00:00

vo_sdl: fix for rename of a function in SDL2's interface

This commit is contained in:
Rudolf Polzer 2013-01-12 21:12:25 +01:00
parent 46f8429794
commit 3996e8882d

View File

@ -378,7 +378,8 @@ static void set_fullscreen(struct vo *vo, int fs)
SDL_SetWindowDisplayMode(vc->window, NULL); SDL_SetWindowDisplayMode(vc->window, NULL);
else { else {
SDL_DisplayMode mode; SDL_DisplayMode mode;
if (!SDL_GetCurrentDisplayMode(SDL_GetWindowDisplay(vc->window), &mode)) if (!SDL_GetCurrentDisplayMode(SDL_GetWindowDisplayIndex(vc->window),
&mode))
SDL_SetWindowDisplayMode(vc->window, &mode); SDL_SetWindowDisplayMode(vc->window, &mode);
} }
@ -927,7 +928,8 @@ static void update_screeninfo(struct vo *vo)
{ {
struct priv *vc = vo->priv; struct priv *vc = vo->priv;
SDL_DisplayMode mode; 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"); mp_msg(MSGT_VO, MSGL_ERR, "[sdl] SDL_GetCurrentDisplayMode failed\n");
return; return;
} }