[MPlayer-dev-eng] [PATCH] Detect current screen size.

daniel carter hedonist at win.co.nz
Thu Mar 7 14:14:05 CET 2002


There have been a number of complaints on -users lately, that when 
playing fullscreen, mplayer displays at the size of the virtual desktop, 
and not the current screen resolution.

I can imagine there are some cases when you might want the current 
behaviour, but i expect 99% of users would prefer mplayer to detect the 
current monitor resolution when playing fullscreen.

The senario i personally have is that i run my desktop at 1024x768.  I 
am now using the GPL tool "nvtv" to dynamically turn on TV-Out.  Doing 
so switches my screen resolution to 800x600 or less.
When i then run mplayer -fs it does not display at fullSCREEN resolution 
(800x600) but instead displays fullVIRTUAL-DESKTOP resoltion (1024x768) 
thus obscuring much of the movie from the screen.  The current 
workaround is tedious use of the screenw and screenh commandline options

Accordinly i have attached a patch that changes the detection of the 
resolution of the X Server.  It uses a function in the xf86 VidMode 
interface to detect the current monitor resolution.

Please let me know how you find the patch.  I have tried to comply with 
the preferences of the mplayer developers regarding patch submission.

Regards,
dan carter.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: screensize.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20020308/594b6e6d/attachment.asc>


More information about the MPlayer-dev-eng mailing list