[MPlayer-users] [Bug] Window size and position changes when toggle fs and window mode

Zhou Zongyi zhouzongyi at pset.suntec.net
Fri Jun 12 08:55:56 CEST 2009


Hi all,

I am using Windows. The problem occurs when playing videos with -vo gl or -vo direct3d from command line.
If you press 'f' several times to toggle fullscreen and window mode, something weird happens.
Size and position of the window keeps changing and at last it may move outside the desktop!

Finally i found that the problem should lie in libvo/w32_common.c.
At line 348

    SetWindowLong(vo_window, GWL_STYLE, style);

And line 376

    AdjustWindowRect(&r, style, 0);

These two API calls unexpectedly modify four global variables vo_dwidth, vo_dheight, vo_dx and vo_dy.

You can test builds from http://oss.netfarm.it/mplayer-win32.php. I cannot explain why this happens.

Regards,

Zhou Zongyi


More information about the MPlayer-users mailing list