summaryrefslogtreecommitdiffstats
path: root/res/raw
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2009-10-20 14:28:53 -0700
committerJason Sams <rjsams@android.com>2009-10-20 14:29:00 -0700
commit96b49d860cbb54daf83721ec67d292140e6753c9 (patch)
tree655adeacfd335c236f8064794edf1bc1e79aa317 /res/raw
parent7d5d74686337fb057eaa7eeff15667a2d900c673 (diff)
downloadandroid_packages_apps_Trebuchet-96b49d860cbb54daf83721ec67d292140e6753c9.tar.gz
android_packages_apps_Trebuchet-96b49d860cbb54daf83721ec67d292140e6753c9.tar.bz2
android_packages_apps_Trebuchet-96b49d860cbb54daf83721ec67d292140e6753c9.zip
Move the home button down slightly.
Diffstat (limited to 'res/raw')
-rw-r--r--res/raw/rollo3.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/res/raw/rollo3.c b/res/raw/rollo3.c
index af186ff58..ffd59d01c 100644
--- a/res/raw/rollo3.c
+++ b/res/raw/rollo3.c
@@ -289,16 +289,11 @@ draw_home_button()
{
setColor(1.0f, 1.0f, 1.0f, 1.0f);
bindTexture(NAMED_PFTexLinear, 0, state->homeButtonId);
+ float x = (SCREEN_WIDTH_PX - params->homeButtonTextureWidth) / 2;
+ float y = (g_Zoom - 1.f) * params->homeButtonTextureHeight;
- float scale = 2.0f / SCREEN_WIDTH_PX;
-
- float x = 0.0f;
-
- float y = -(SCREEN_HEIGHT_PX / (float)SCREEN_WIDTH_PX);
- y += g_Zoom * (scale * params->homeButtonTextureHeight / 2);
-
- float z = 0.0f;
- drawSprite(x, y, z, params->homeButtonTextureWidth, params->homeButtonTextureHeight);
+ y -= 36; // move the house to the edge of the screen as it doesn't fill the texture.
+ drawSpriteScreenspace(x, y, 0, params->homeButtonTextureWidth, params->homeButtonTextureHeight);
}
void drawFrontGrid(float rowOffset, float p)