don't reset variable unless changed

This commit is contained in:
Eric House 2012-06-26 06:50:54 -07:00
parent 8ff27cc075
commit 13633186ff

View file

@ -295,9 +295,9 @@ public class BoardView extends View implements DrawCtx, BoardHandler,
heightLeft /= 3;
trayHt += heightLeft * 2;
scoreHt += heightLeft;
heightUsed = trayHt + scoreHt + ((nCells - nToScroll) * cellSize);
heightLeft = height - heightUsed;
}
heightUsed = trayHt + scoreHt + ((nCells - nToScroll) * cellSize);
heightLeft = height - heightUsed;
result.top = heightLeft / 2;
result.trayHt = trayHt;