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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]<

 



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
_______________________________________________
MPlayer-users mailing list
MPlayer-users@xxxxxxxxxxxx
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users

[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux