Merge "Fix stop point for physics in landscape."

This commit is contained in:
Jason Sams 2010-03-15 12:12:53 -07:00 committed by Android (Google) Code Review
commit 552a608e3c
1 changed files with 4 additions and 1 deletions

View File

@ -389,9 +389,12 @@ main(int launchID)
// icons & labels
int iconCount = state->iconCount;
g_PosMax = ((iconCount + 3) / 4) - 4;
if (getWidth() > getHeight()) {
g_PosMax -= 2;
}
if (g_PosMax < 0) g_PosMax = 0;
updatePos(0.1f);
updatePos();
updateReadback();
//debugF(" draw g_PosPage", g_PosPage);