fix statusbox padding problem in UiGeometry

This commit is contained in:
Colin McMillen 2023-09-15 01:48:12 -04:00
parent 4cd0d4efc6
commit 389ab12fb2

View File

@ -291,9 +291,8 @@ public class UiGeometry {
}
int statusBoxHeight = 40;
int statusBoxPadding = 4;
PhotoBox = new Box2i(
0, 0, WindowSize.X - thumbnailWidth * thumbnailColumns, WindowSize.Y - statusBoxHeight - statusBoxPadding);
0, 0, WindowSize.X - thumbnailWidth * thumbnailColumns, WindowSize.Y - statusBoxHeight);
StatusBox = new Box2i(
0, WindowSize.Y - statusBoxHeight, WindowSize.X - thumbnailWidth * thumbnailColumns, WindowSize.Y);
ThumbnailBox = new Box2i(
@ -975,7 +974,7 @@ public class Game : GameWindow {
}
// Draw status box.
int statusPadding = 2;
int statusPadding = 4;
DrawFilledBox(geometry.StatusBox, Color4.Black);
// First line.
int y = geometry.StatusBox.Min.Y + statusPadding;