1
0
forked from 0ad/0ad

Minor alignment correction.

This was SVN commit r3668.
This commit is contained in:
Acumen 2006-03-19 06:38:24 +00:00
parent be382223f8
commit c29f4ca444
2 changed files with 3 additions and 3 deletions

View File

@ -225,7 +225,7 @@ function refreshResource (resourceName, resourceIndex)
if (resourceIndex == 0)
{
// The first coordinate is in the exact centre of the screen.
Crd[crdResult].coord[coordGroup].x = -Crd[crdResult].coord[coordGroup].width - 5;
Crd[crdResult].coord[coordGroup].x = Math.round (-(Crd[crdResult].coord[coordGroup].width/2) - 5);
}
else
{ // Resources other than the first one get stacked in sequence to the sides of it.

View File

@ -207,12 +207,12 @@ function calcCrdArray (rx, ry, x, y, width, height, rx2, ry2)
else
{
// Use the standard "size" structure:
// RX
// RY
// X1
// X2
// Y1
// Y2
// RX
// RY
// RX2
// RY2