am 7f90678d: am f70fbe70: Merge change I461073bb into eclair

Merge commit '7f90678dad159eb284d4f16d55890761835d24cb' into eclair-mr2-plus-aosp

* commit '7f90678dad159eb284d4f16d55890761835d24cb':
  Fix exit animation of top icon when present.
This commit is contained in:
Jason Sams
2009-10-21 22:34:18 -07:00
committed by Android Git Automerger
+5 -5
View File
@@ -247,9 +247,9 @@ int positionStrip(float row, float column, int isTop, float p)
} else {
matrixLoadTranslate(mat1, x, -0.9f, 0.f);
matrixScale(mat1, scale, -scale, 1.f);
matrixTranslate(mat1, 0, p * 2, 0.f);
matrixRotate(mat1, -p * 50, 1, 0, 0);
}
matrixTranslate(mat1, 0, p * 2, 0.f);
matrixRotate(mat1, -p * 50, 1, 0, 0);
vpLoadModelMatrix(mat1);
float soff = -(row * 1.4);
@@ -365,7 +365,7 @@ void drawStrip(float row, float column, int isTop, int iconNum, float p)
drawSimpleMeshRange(NAMED_SMMesh, offset * 6, 20 * 6);
}
void drawTop(float rowOffset)
void drawTop(float rowOffset, float p)
{
int row, col;
int iconNum = 0;
@@ -374,7 +374,7 @@ void drawTop(float rowOffset)
if (iconNum >= state->iconCount) {
return;
}
drawStrip(rowOffset - row, col, 1, iconNum, 0);
drawStrip(rowOffset - row, col, 1, iconNum, p);
iconNum++;
}
}
@@ -471,7 +471,7 @@ main(int launchID)
bindProgramFragment(NAMED_PFTexLinear);
drawTop(g_PosPage);
drawTop(g_PosPage, 1-g_Zoom);
drawBottom(g_PosPage, 1-g_Zoom);
{