[MPlayer-dev-eng] [PATCH] Fix -geometry option
Giorgio
mywing81 at gmail.com
Tue Jun 1 21:26:54 CEST 2010
Hello,
on my system (GNU/Linux) the -geometry option doesn't work as
expected. In particular the following commands:
1) mplayer -geometry 50 file.avi
2) mplayer -geometry 50% file.avi
do the same thing, placing the window at the center of the screen. If
you use the -v option you can see a message like this:
"geometry set to width: -2147483648,height: -2147483648, xoff:
+-2147483648, yoff: +-2147483648, xper: 50, yper: -2147483648"
so the x value is always read as a percentage, and not as an offset in
the 1st case.
The same happens with:
3) mplayer -geometry 50:50 file.avi
4) mplayer -geometry 50:50% file.avi
(where the 3rd command doesn't work) and
5) mplayer -geometry 50%:50 file.avi
6) mplayer -geometry 50%:50% file.avi
(the 5th command doesn't work).
This patch fixes all the cases for me. Although, I'm not sure if there
is an easier/cleaner way to fix this issue.
Giorgio Vazzana
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-fix-geometry.diff
Type: text/x-diff
Size: 2100 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100601/c4178649/attachment.diff>
More information about the MPlayer-dev-eng
mailing list