diff options
author | Kristian Lyngstol <kristian@bohemians.org> | 2016-05-28 13:31:40 +0200 |
---|---|---|
committer | Kristian Lyngstol <kristian@bohemians.org> | 2016-05-28 13:31:40 +0200 |
commit | 6fbb4fcf563a4cbdd11932e415bd50d7d6279e3b (patch) | |
tree | b55cc9ee161f1d61ab30c8bb1198a7786b7448c2 /include | |
parent | 392ad3284d9e686ee49b51565490d665ca7e4284 (diff) |
Add dx16 early graphics and adjust placement
References #53 #52 #54
It's hardcoded, but I can live with that for now.
Diffstat (limited to 'include')
-rw-r--r-- | include/nms/util.pm | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/include/nms/util.pm b/include/nms/util.pm index 4e61082..f79df50 100644 --- a/include/nms/util.pm +++ b/include/nms/util.pm @@ -67,35 +67,35 @@ sub guess_placement_dx { my ($e, $s) = ($1, $2); $src = "main"; - $x = int(1400 - (($e-1)/2) * 60); + $x = int(1523 - (($e-1)/2) * 61); $y = undef; if ($s > 1) { - $y = 100; + $y = 137; } else { - $y = 500; + $y = 410; } $xx = $x + 32; - $yy = $y + 300; + $yy = $y + 200; } elsif ($name =~ /^core$/) { $src = "core"; - $x = 800; - $y = 850; + $x = 1100; + $y = 650; $xx = $x + 200; $yy = $y + 100; } elsif ($name =~ /^noc$/) { $src = "noc"; - $x = 400; - $y = 900; + $x = 300; + $y = 800; $xx = $x + 230; $yy = $y + 40; } elsif ($name =~ /^distro(\d)$/) { my $d = ($1); $src = "distro"; - $x = 1200 - $d * 900; - $y = 415; + $x = 1200 - $d * 700; + $y = 355; $xx = $x + 230; $yy = $y + 40; } else { |