cooler screen positioning in horizontal mode

This commit is contained in:
StapleButter 2017-11-08 02:02:15 +01:00
parent e6e5f48748
commit bb87a709be
1 changed files with 2 additions and 2 deletions

View File

@ -439,7 +439,7 @@ horizontal = true; // TEST
TopScreenRect.Height = heightreq;
}
TopScreenRect.X = startX;
TopScreenRect.Y = (height - TopScreenRect.Height) / 2;
TopScreenRect.Y = ((height - heightreq) / 2) + (heightreq - TopScreenRect.Height);
BottomScreenRect.X = TopScreenRect.X + TopScreenRect.Width + ScreenGap;
@ -453,7 +453,7 @@ horizontal = true; // TEST
BottomScreenRect.Width = width - TopScreenRect.Width;
BottomScreenRect.Height = heightreq;
}
BottomScreenRect.Y = (height - BottomScreenRect.Height) / 2;
BottomScreenRect.Y = ((height - heightreq) / 2) + (heightreq - BottomScreenRect.Height);
}
else
{