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

Ponekker Zoltan pontscho at makacs.poliod.hu
Thu Mar 7 14:46:40 CET 2002


Thanks, applied.

Pontscho

On Fri, 8 Mar 2002, daniel carter wrote:

> 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.
>




More information about the MPlayer-dev-eng mailing list