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-861f7616d084master
parent
ad1a6db74e
commit
4c70b5eb7a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue