summaryrefslogtreecommitdiff
path: root/lcarsng.c
diff options
context:
space:
mode:
authorKarl Melscher <kamel5@gmx.net>2018-03-07 14:58:24 +0100
committerKarl Melscher <kamel5@gmx.net>2018-03-07 14:58:24 +0100
commit3ec4c81e6ae25b8ac53d725b9ef51c0f5b721769 (patch)
tree3092a0e151557320d56a1c4e81e95c1ab4ecc26f /lcarsng.c
parent1fca779aa0852e77758d428646f3cad1036a37d2 (diff)
downloadskin-lcarsng-3ec4c81e6ae25b8ac53d725b9ef51c0f5b721769.tar.gz
skin-lcarsng-3ec4c81e6ae25b8ac53d725b9ef51c0f5b721769.tar.bz2
Define xRand/yRand for VideoWindow
Diffstat (limited to 'lcarsng.c')
-rw-r--r--lcarsng.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lcarsng.c b/lcarsng.c
index b1d17e0..3edc839 100644
--- a/lcarsng.c
+++ b/lcarsng.c
@@ -1826,8 +1826,12 @@ const cFont *cLCARSNGDisplayMenu::GetTextAreaFont(bool FixedFont) const
void cLCARSNGDisplayMenu::Flush(void)
{
+ int xrand = (1920 - xa09) / 2;
+ int yrand = (1080 - yb15) / 2;
cDevice *Device = cDevice::PrimaryDevice();
- cRect videoWindowRect( 0.575 * xa09, lineHeight, 0.44 * xa09, yc06 - lineHeight / 2);
+// cRect videoWindowRect( 0.575 * xa09, lineHeight, 0.44 * xa09, yc06 - lineHeight / 2);
+// cRect videoWindowRect((1920 - xa09) / 2 + xs00, lineHeight, xs11 - xs00, yc06 - lineHeight / 2);
+ cRect videoWindowRect( xs00 + xrand, lineHeight, xs11 - xs00, yc06 - lineHeight / 2);
DrawFrameDisplay();
switch (MenuCategory()) {
case mcMain: