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:
parent
46f8429794
commit
3996e8882d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user