aboutsummaryrefslogtreecommitdiff
path: root/src/libui_sdl
diff options
context:
space:
mode:
Diffstat (limited to 'src/libui_sdl')
-rw-r--r--src/libui_sdl/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libui_sdl/main.cpp b/src/libui_sdl/main.cpp
index 5023dac..9861366 100644
--- a/src/libui_sdl/main.cpp
+++ b/src/libui_sdl/main.cpp
@@ -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
{