[MPlayer-dev-eng] [PATCH] Fix wrong aspect after window minimization (direct3d, gl, gl2)

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Mon Feb 23 22:00:54 CET 2009


On Mon, Feb 23, 2009 at 09:45:45PM +0200, Georgi Petrov wrote:
> On Mon, Feb 23, 2009 at 9:37 PM, Georgi Petrov <gogothebee at gmail.com> wrote:
> > Ok, here it goes. I didn't particularly like this testing, but just to
> > be on the safe side:

Thanks, I though I admit I was only thinking of numbers from one PC,
just to get me some idea.

> After a little bit research I found that the Win32 API always returns
> the position of minimized windows at top:-32000, bottom:-32000. You
> can find many articles about it when you googlesearch: GetWindowRect
> 32000. So I assume that we can either count on GetClientRect returning
> "0 0 0 0" or GetWindowRect returning "-32000 x -32000 x". This wasn't
> observed when the code was written, so it deals Wrong with minimized
> windows.

The situation is a bit more complex, e.g. on Win9x the minized position
seems to be at 3000x3000 and GetClientRect probably is != 0, too.
I decided to use similar code as elsewhere, namely AdjustWindowRect.
As far as I can test it works with wine, someone please test attached
patch.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wpos.diff
Type: text/x-diff
Size: 1045 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20090223/3f448b4b/attachment.diff>


More information about the MPlayer-dev-eng mailing list