From 70467ef0b921bcdbefbba805869bd86704a30a0e Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Thu, 3 Feb 2011 14:17:40 -0800 Subject: [PATCH] RS API cleanup for SDK. Update apps to final APIs. bug 3421901 Change-Id: If84b19459e510568278f7c97d3d3486c94f1d619 --- src/com/android/launcher2/allapps.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/android/launcher2/allapps.rs b/src/com/android/launcher2/allapps.rs index bebc04d10f..4ea1aee374 100644 --- a/src/com/android/launcher2/allapps.rs +++ b/src/com/android/launcher2/allapps.rs @@ -298,7 +298,7 @@ static void drawFrontGrid(float rowOffset, float p) vpConstants->ImgSize.y = rsAllocationGetDimY(gSelectedIconTexture); vpConstants->Position.y = y - (rsAllocationGetDimY(gSelectedIconTexture) - rsAllocationGetDimY(gIcons[iconNum])) * 0.5f; - rsAllocationMarkDirty(g_VPConstAlloc); + rsgAllocationSyncAll(g_VPConstAlloc); rsgDrawMesh(gSMCell); } @@ -306,7 +306,7 @@ static void drawFrontGrid(float rowOffset, float p) vpConstants->ImgSize.x = rsAllocationGetDimX(gIcons[iconNum]); vpConstants->ImgSize.y = rsAllocationGetDimY(gIcons[iconNum]); vpConstants->Position.y = y - 0.2f; - rsAllocationMarkDirty(g_VPConstAlloc); + rsgAllocationSyncAll(g_VPConstAlloc); rsgBindTexture(gPFTexMip, 0, gIcons[iconNum]); rsgDrawMesh(gSMCell); @@ -314,7 +314,7 @@ static void drawFrontGrid(float rowOffset, float p) vpConstants->ImgSize.x = rsAllocationGetDimX(gLabels[iconNum]); vpConstants->ImgSize.y = rsAllocationGetDimY(gLabels[iconNum]); vpConstants->Position.y = y - 64.f - 0.2f; - rsAllocationMarkDirty(g_VPConstAlloc); + rsgAllocationSyncAll(g_VPConstAlloc); rsgBindTexture(gPFTexMipAlpha, 0, gLabels[iconNum]); rsgDrawMesh(gSMCell); }