From 64cd97926e2a45f5220a23626721e60d0ceacfae Mon Sep 17 00:00:00 2001 From: Treeki Date: Thu, 7 Feb 2013 03:45:53 +0100 Subject: various fixes to Layout code --- src/koopatlas/hud.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/koopatlas/hud.cpp') diff --git a/src/koopatlas/hud.cpp b/src/koopatlas/hud.cpp index 157821b..ce54d8f 100644 --- a/src/koopatlas/hud.cpp +++ b/src/koopatlas/hud.cpp @@ -36,14 +36,18 @@ int dWMHud_c::onCreate() { bool output = layout.build("maphud.brlyt"); - if (!IsWideScreen()) { + layout.layout.rootPane->trans.x = -112.0f; + if (IsWideScreen()) { + layout.layout.rootPane->scale.x = 0.735f; + } else { layout.clippingEnabled = true; layout.clipX = 0; layout.clipY = 52; layout.clipWidth = 640; layout.clipHeight = 352; - layout.layout.rootPane->scale.x = 0.7711f; + layout.layout.rootPane->scale.x = 0.731f; layout.layout.rootPane->scale.y = 0.7711f; + layout.drawInfo._50 &= ~0x20; } static const char *brlanNames[] = { -- cgit v1.2.3