Skip to content

Commit

Permalink
Added Jeagoss's droid_background.png
Browse files Browse the repository at this point in the history
  • Loading branch information
WootRoot authored and hyperb1iss committed Jun 24, 2010
1 parent 951529d commit eaa6eba
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
Binary file added res/drawable-hdpi/droid_background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/droid_background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions res/raw/nexus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ void drawBackground(int width, int height) {
bindTexture(NAMED_PFTexture565, 0, NAMED_TBackgroundLookingGlass);
} else if (State->background == 3) { //added a else if for if set to 3 (cyanogenmod bg)
bindTexture(NAMED_PFTexture565, 0, NAMED_TBackgroundCyanogenMod); //added cyanogenmod state
} else if (State->background == 4) { //added a else if for if set to 3 (cyanogenmod bg)
bindTexture(NAMED_PFTexture565, 0, NAMED_TBackgroundDroidBackground); //added jeagoss's droidbg
}
color(1.0f, 1.0f, 1.0f, 1.0f);
if (State->rotate) {
Expand Down
2 changes: 2 additions & 0 deletions res/values/arrays.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
<item>Dark</item>
<item>Looking Glass</item>
<item>Cyanogenmod</item> //added option for cyanogenmod
<item>Droid Background</item>// added jegoss's droid background

</string-array>

Expand All @@ -129,6 +130,7 @@
<item>dark</item>
<item>lookingglass</item>
<item>cyanogenmod</item> //added option for cyanogenmod
<item>droidbackground</item>//added jeagoss's droid background
</string-array>

</resources>
4 changes: 4 additions & 0 deletions src/com/android/wallpaper/nexus/NexusRS.java
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@ private void makeNewState() {
mWorldState.background = 2;
} else if (mBackground.equals("cyanogenmod")){ //added cyanogenmod for mBackground.equals
mWorldState.background = 3; //set mWorldState.background to 3 if the cyanognemod background is used
} else if (mBackground.equals("droidbackground")){ //added droid_background for mBackground.equals
mWorldState.background = 4; //set
} else {
mWorldState.background = 0;
}
Expand Down Expand Up @@ -332,6 +334,8 @@ private void loadTextures() {
mTextures[4] = loadTextureARGB(R.drawable.lookingglass_background, "TBackgroundLookingGlass");
/*mTextures[5] = loadTexture(R.drawable.cyanogenmod_background, "TBackgroundCyanogenMod");*/
mTextures[5] = 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");

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

0 comments on commit eaa6eba

Please sign in to comment.