Re: [AD] Centering the Allegro window on the Windows desktop |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: alleg-developers@xxxxxxxxxx
- Subject: Re: [AD] Centering the Allegro window on the Windows desktop
- From: Tore Halse <gnolam@xxxxxxxxxx>
- Date: Sat, 22 Jan 2005 23:24:19 +0100
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=UhXyXXwIVqn1hh6gqX/3S7pnFjmeWtUxnbI27ftVewup40zlrTd7ukvXK0Q0N4xngKXJ1tkO9nGuIvoA4vzpBOozrgBXo1kjgV/GQ3F402fMc3EUHh9HTOk+wCPdX9HfW2fylqQoKsAi/bHPwpLPEjO5UqWN0dHcx29cEuNfaJU=
On Sat, 22 Jan 2005 22:23:10 +0100, Tore Halse <gnolam@xxxxxxxxxx> wrote:
> On Sat, 22 Jan 2005 22:11:34 +0100, Evert Glebbeek <eglebbk@xxxxxxxxxx> wrote:
> > On Saturday 22 January 2005 21:59, Elias Pschernig wrote:
> > > Shouldn't it be centered relative to the previous window in that case
> > > (making sure it doesn't go over any screen edges)?
> >
> > Sounds even better. Yes, I think it should be.
> >
> > Evert
>
> Oki. I'll get right on it :)
>
> Tore
Ok, I have a working patch, but I've hit a minor snag - when I try to
check the current window's width and height inside adjust_window() all
I get is garbage, and I have so far not found a reason why. I can
easily work around it by inserting two static ints containing the
previous width and height (and when I do it works like a charm), but
it feels a bit hackish to me...
(the bonus would be that I get a reliable way to check if
adjust_window() has been called before or not, instead of the current
implementation that just checks if the window's x position is < 0 or
not)
Thoughts?
Tore