diff options
author | Karl Melscher <kamel5@gmx.net> | 2018-03-07 14:58:24 +0100 |
---|---|---|
committer | Karl Melscher <kamel5@gmx.net> | 2018-03-07 14:58:24 +0100 |
commit | 3ec4c81e6ae25b8ac53d725b9ef51c0f5b721769 (patch) | |
tree | 3092a0e151557320d56a1c4e81e95c1ab4ecc26f /lcarsng.c | |
parent | 1fca779aa0852e77758d428646f3cad1036a37d2 (diff) | |
download | skin-lcarsng-3ec4c81e6ae25b8ac53d725b9ef51c0f5b721769.tar.gz skin-lcarsng-3ec4c81e6ae25b8ac53d725b9ef51c0f5b721769.tar.bz2 |
Define xRand/yRand for VideoWindow
Diffstat (limited to 'lcarsng.c')
-rw-r--r-- | lcarsng.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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: |