Bah, this should have gone to the list. Sorry for the double-post, Ciprian.

---------- Forwarded message ----------
From: Patrick Bogen <[EMAIL PROTECTED]>
Date: Apr 17, 2005 9:18 AM
Subject: Re: 0.70 and mplayer fullscreen toggle SOLVED
To: Ciprian Popovici <[EMAIL PROTECTED]>


I'll answer the questions in reverse order...
    Basically Blackbox tries to both maintain the aspect ratio of the
window (you'll notice in 0.70.0 that if you resize MPlayer, it keeps
it's shape, which it didn't do in 0.65.0), AND obey the fullsizing.
The problem is, your monitor probably doesn't have the same aspect
ratio as the movie, so when it tries to obey the aspect (size) hints,
you can't get a window as large as the screen (which is why it looks
okay if you play a 4:3 movie, since computer monitors ARE 4:3; if you
had a 16:9 widescreen monitor, then 16:9 would look okay and 4:3 would
be fubar). This results in a "fullsize" window with the right aspect
ratio- which is wrong, since MPlayer paints the black borders at the
top and bottom for 16:9 to compensate for a screen's wrong aspect
ratio (letterboxing). We're all familiar with what exactly this
results in.
    The solution to this is to strip away the Aspect (size) hints
before going fullscreen, and restore then when coming back.
    Anyway, for a bit of background before I explain the patch,
Blackbox is an EWMH/NetWM-compliant window manager, which basically
means there's a set of hints it obeys, one of which is the fullscreen
hint that's been causing problems (the -fstype -fullscreen fix
suggested earlier tells mplayer to forget about the EWMH fullscreen
hint). All the patch does is borrow some code from non-EWMH
fullscreening (specifically, the code that would resize the window
manually) and use it before sending the EWMH fullscreen hint.

So, the answer to your first question depends on the EWMH standard,
which I haven't read; if it says that fullscreen should disregard
aspect (size) hints, then the problem is with blackbox (but is
trivially fixed in MPlayer); otherwise, it's just a (new) quirk of
blackbox (which is still trivially fixed in MPlayer).

On 4/17/05, Ciprian Popovici <[EMAIL PROTECTED]> wrote:
> On Sat, 16 Apr 2005 23:25:56 -0500 Patrick Bogen <[EMAIL PROTECTED]> wrote:
> > This thread helped me better my understand of the problem, so I
> > thought I'd share my results. This little beauty is caused by the fact
> > that Blackbox 0.70.0 tries to obey both the aspect hints and the
> > fullscreen hints (that's why it "works" if you watch a 4:3 film). So,
> > anyway, wrote a fairly simple patch against MPlayer CVS that fixes
> > this. You can grab it at
> > http://quijibo.physics.tamu.edu/~pdbogen/fixforblackbox070.diff .
>
> Should I take it that it the issue is with MPlayer and not with Blackbox?
> Can you explain how the patch solves the problem, for those of us who
> are not experienced enough in C++ or/and MPlayer code?
>
> --
> Ciprian Popovici
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> List archives:  http://asgardsrealm.net/lurker/splash/index.html
>
>

--
- Patrick Bogen


-- 
- Patrick Bogen

--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
List archives:  http://asgardsrealm.net/lurker/splash/index.html

Reply via email to