mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
Fix legend positions
This commit is contained in:
parent
cbfef2eb53
commit
88142ea839
1 changed files with 9 additions and 6 deletions
|
@ -2060,20 +2060,23 @@ static MapRenderData getmaprenderdata()
|
|||
data.zoom = map.custommode ? map.customzoom : 1;
|
||||
data.xoff = map.custommode ? map.custommmxoff : 0;
|
||||
data.yoff = map.custommode ? map.custommmyoff : 0;
|
||||
data.legendxoff = 40 + data.xoff;
|
||||
data.legendyoff = 21 + data.yoff;
|
||||
|
||||
// Magic numbers for centering legend tiles.
|
||||
switch (data.zoom)
|
||||
{
|
||||
case 4:
|
||||
data.legendxoff = 60;
|
||||
data.legendyoff = 35;
|
||||
data.legendxoff += 21;
|
||||
data.legendyoff += 16;
|
||||
break;
|
||||
case 2:
|
||||
data.legendxoff = 48;
|
||||
data.legendyoff = 26;
|
||||
data.legendxoff += 9;
|
||||
data.legendyoff += 5;
|
||||
break;
|
||||
default:
|
||||
data.legendxoff = 43;
|
||||
data.legendyoff = 22;
|
||||
data.legendxoff += 3;
|
||||
data.legendyoff += 1;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue