summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/allapps.rs
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2010-12-06 17:38:58 -0800
committerJason Sams <rjsams@android.com>2010-12-06 17:46:21 -0800
commit4dfea09814620e1714aefb8b6b3b9a6c640122db (patch)
tree79fe9843883b80b9c7fe1561ce1a5fdea1af6a5d /src/com/android/launcher2/allapps.rs
parenta1ccb5ec7d29026b8bc2a6f1daaa6ed3bdf2c7ef (diff)
downloadandroid_packages_apps_Trebuchet-4dfea09814620e1714aefb8b6b3b9a6c640122db.tar.gz
android_packages_apps_Trebuchet-4dfea09814620e1714aefb8b6b3b9a6c640122db.tar.bz2
android_packages_apps_Trebuchet-4dfea09814620e1714aefb8b6b3b9a6c640122db.zip
update to new API
Remove extra arrays and allocations for manual allocation -> int conversions which were a legacy issue. Change-Id: I7c71f764e48b01bb29911c1231e8fce5df8ff2a2
Diffstat (limited to 'src/com/android/launcher2/allapps.rs')
-rw-r--r--src/com/android/launcher2/allapps.rs18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/com/android/launcher2/allapps.rs b/src/com/android/launcher2/allapps.rs
index 11851b8f7..bebc04d10 100644
--- a/src/com/android/launcher2/allapps.rs
+++ b/src/com/android/launcher2/allapps.rs
@@ -24,8 +24,8 @@ rs_program_vertex gPVCurve;
rs_program_store gPS;
rs_mesh gSMCell;
-rs_allocation *gIconIDs;
-rs_allocation *gLabelIDs;
+rs_allocation *gIcons;
+rs_allocation *gLabels;
typedef struct VpConsts {
rs_matrix4x4 Proj;
@@ -297,25 +297,25 @@ static void drawFrontGrid(float rowOffset, float p)
vpConstants->ImgSize.x = rsAllocationGetDimX(gSelectedIconTexture);
vpConstants->ImgSize.y = rsAllocationGetDimY(gSelectedIconTexture);
vpConstants->Position.y = y - (rsAllocationGetDimY(gSelectedIconTexture)
- - rsAllocationGetDimY(gIconIDs[iconNum])) * 0.5f;
+ - rsAllocationGetDimY(gIcons[iconNum])) * 0.5f;
rsAllocationMarkDirty(g_VPConstAlloc);
rsgDrawMesh(gSMCell);
}
rsgBindProgramFragment(gPFTexMip);
- vpConstants->ImgSize.x = rsAllocationGetDimX(gIconIDs[iconNum]);
- vpConstants->ImgSize.y = rsAllocationGetDimY(gIconIDs[iconNum]);
+ vpConstants->ImgSize.x = rsAllocationGetDimX(gIcons[iconNum]);
+ vpConstants->ImgSize.y = rsAllocationGetDimY(gIcons[iconNum]);
vpConstants->Position.y = y - 0.2f;
rsAllocationMarkDirty(g_VPConstAlloc);
- rsgBindTexture(gPFTexMip, 0, gIconIDs[iconNum]);
+ rsgBindTexture(gPFTexMip, 0, gIcons[iconNum]);
rsgDrawMesh(gSMCell);
rsgBindProgramFragment(gPFTexMipAlpha);
- vpConstants->ImgSize.x = rsAllocationGetDimX(gLabelIDs[iconNum]);
- vpConstants->ImgSize.y = rsAllocationGetDimY(gLabelIDs[iconNum]);
+ vpConstants->ImgSize.x = rsAllocationGetDimX(gLabels[iconNum]);
+ vpConstants->ImgSize.y = rsAllocationGetDimY(gLabels[iconNum]);
vpConstants->Position.y = y - 64.f - 0.2f;
rsAllocationMarkDirty(g_VPConstAlloc);
- rsgBindTexture(gPFTexMipAlpha, 0, gLabelIDs[iconNum]);
+ rsgBindTexture(gPFTexMipAlpha, 0, gLabels[iconNum]);
rsgDrawMesh(gSMCell);
}
iconNum++;