1004
1012
void Window::adjustPositionAfterResize(const int oldScreenWidth,
1005
1013
const int oldScreenHeight)
1009
1015
// If window was aligned to the right or bottom, keep it there
1010
1016
const int rightMargin = oldScreenWidth - (mDimension.x + mDimension.width);
1011
1017
const int bottomMargin = oldScreenHeight
1012
1018
- (mDimension.y + mDimension.height);
1013
1019
if (mDimension.x > 0 && mDimension.x > rightMargin)
1015
1021
if (mDimension.y > 0 && mDimension.y > bottomMargin)