summaryrefslogtreecommitdiff
path: root/src/koopatlas/hud.cpp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2013-02-07 03:45:53 +0100
committerTreeki <treeki@gmail.com>2013-02-07 03:45:53 +0100
commit64cd97926e2a45f5220a23626721e60d0ceacfae (patch)
tree42cdc7ba48dd59703e4e441026cd69ce1bd2c952 /src/koopatlas/hud.cpp
parente7dd81b3099f6e3e592f51b923a9e9c3b82ff2ef (diff)
downloadkamek-64cd97926e2a45f5220a23626721e60d0ceacfae.tar.gz
kamek-64cd97926e2a45f5220a23626721e60d0ceacfae.zip
various fixes to Layout code
Diffstat (limited to '')
-rw-r--r--src/koopatlas/hud.cpp8
1 files changed, 6 insertions, 2 deletions
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[] = {