summaryrefslogtreecommitdiffstats
path: root/res/raw
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2009-10-20 12:06:28 -0700
committerJason Sams <rjsams@android.com>2009-10-20 12:06:28 -0700
commit461073bbddd5d0fe026e0f89e1df22eda014817f (patch)
tree35eeb94c6d11fc5820617935805d0f2c64b3bd2f /res/raw
parentc1c521edf4fbb7048a4fba601d13a765e073e402 (diff)
downloadandroid_packages_apps_Trebuchet-461073bbddd5d0fe026e0f89e1df22eda014817f.tar.gz
android_packages_apps_Trebuchet-461073bbddd5d0fe026e0f89e1df22eda014817f.tar.bz2
android_packages_apps_Trebuchet-461073bbddd5d0fe026e0f89e1df22eda014817f.zip
Fix exit animation of top icon when present.
Diffstat (limited to 'res/raw')
-rw-r--r--res/raw/rollo3.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/res/raw/rollo3.c b/res/raw/rollo3.c
index 253709a44..77db74a69 100644
--- a/res/raw/rollo3.c
+++ b/res/raw/rollo3.c
@@ -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);
{