Fix a bug similar in ilk to that fixed in r5925, except for vertical as opposed to horizontal window alignment.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5926 4a71c877-e1ca-e34f-864e-861f7616d084
master
Freddie Witherden 2008-09-03 21:36:28 +00:00
parent ad1a6db74e
commit 4c70b5eb7a
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ void windowRepositionFromAnchor(window *self, const window *anchor,
y = anchorPos.y;
break;
case MIDDLE:
y = (anchorPos.y + anchorSize.y) / 2 - ourSize.y / 2;
y = anchorPos.y + (anchorSize.x / 2 - ourSize.y / 2);
break;
case BOTTOM:
y = anchorPos.y + anchorSize.y;