1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-02 21:12:23 +00:00

Set vo_dwidth/vo_dheight for mouse movements work at least in windowed mode.

For fullscreen, vo_screenwidth/vo_screenheight have to be set correctly still.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31095 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2010-04-25 16:48:48 +00:00
parent 12c9fa73f3
commit 7da954855a

View File

@ -583,6 +583,8 @@ static void set_video_mode(int width, int height, int bpp, uint32_t sdlflags)
priv->surface = newsurface; priv->surface = newsurface;
priv->dstwidth = width; priv->dstwidth = width;
priv->dstheight = height; priv->dstheight = height;
vo_dwidth = width;
vo_dheight = height;
setup_surfaces(); setup_surfaces();
} }