From 3ec4c81e6ae25b8ac53d725b9ef51c0f5b721769 Mon Sep 17 00:00:00 2001 From: Karl Melscher Date: Wed, 7 Mar 2018 14:58:24 +0100 Subject: Define xRand/yRand for VideoWindow --- lcarsng.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lcarsng.c') 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: -- cgit v1.2.3