Skip to content

Commit

Permalink
Fixed a texture issue
Browse files Browse the repository at this point in the history
  • Loading branch information
WootRoot authored and hyperb1iss committed Jun 24, 2010
1 parent 238ff87 commit bbd944c
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/com/android/wallpaper/nexus/NexusRS.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class NexusRS extends RenderScriptScene implements SharedPreferences.OnSharedPre

private static final int RSID_COMMAND = 1;

private static final int TEXTURES_COUNT = 6; //changed number of textures from 5 to 6
private static final int TEXTURES_COUNT = 7; //changed number of textures from 5 to 6

private final BitmapFactory.Options mOptionsARGB = new BitmapFactory.Options();

Expand Down Expand Up @@ -328,14 +328,10 @@ private void loadTextures() {
mTextures[0] = loadTextureARGB(R.drawable.pyramid_background, "TBackground");
mTextures[1] = loadTextureARGB(R.drawable.pulse, "TPulse");
mTextures[2] = loadTextureARGB(R.drawable.glow, "TGlow");
/*mTextures[3] = loadTexture(R.drawable.dark_pyramid_background, "TBackgroundDark");*/
mTextures[3] = loadTextureARGB(R.drawable.dark_pyramid_background, "TBackgroundDark");
/*mTextures[4] = loadTexture(R.drawable.lookingglass_background, "TBackgroundLookingGlass");*/
mTextures[4] = loadTextureARGB(R.drawable.lookingglass_background, "TBackgroundLookingGlass");
/*mTextures[5] = loadTexture(R.drawable.cyanogenmod_background, "TBackgroundCyanogenMod");*/
mTextures[4] = loadTextureARGB(R.drawable.cyanogenmod_background, "TBackgroundCyanogenMod");
/*mTextures[5] = loadTexture(R.drawable.droid_background, "TBackgroundDroidBackground");*/ //commented out to fix the lack of ARGB
mTextures[5] = loadTextureARGB(R.drawable.droid_background, "TBackgroundDroidBackground");
mTextures[5] = loadTextureARGB(R.drawable.cyanogenmod_background, "TBackgroundCyanogenMod");
mTextures[6] = loadTextureARGB(R.drawable.droid_background, "TBackgroundDroidBackground");

final int count = mTextures.length;
for (int i = 0; i < count; i++) {
Expand Down

0 comments on commit bbd944c

Please sign in to comment.