summaryrefslogtreecommitdiffstats
path: root/cmds/bootanimation
diff options
context:
space:
mode:
authorChris Elliott <chriselliott@google.com>2015-05-07 16:51:07 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-05-07 16:51:09 +0000
commit2224eac30375a731f4ad38d6930dbc37b0855a0d (patch)
tree5f377d476d0fd3e84541517c5adb6593d8cc9606 /cmds/bootanimation
parent2021c8773150dd47d8781375af94143cb22afd9d (diff)
parentd13d504e4b7548f0ce4f9c4f0eee5c1ac2ce6794 (diff)
downloadframeworks_base-2224eac30375a731f4ad38d6930dbc37b0855a0d.zip
frameworks_base-2224eac30375a731f4ad38d6930dbc37b0855a0d.tar.gz
frameworks_base-2224eac30375a731f4ad38d6930dbc37b0855a0d.tar.bz2
Merge "bootanimation: fix garbage line issue when screen height is odd." into lmp-mr1-modular-dev
Diffstat (limited to 'cmds/bootanimation')
-rw-r--r--cmds/bootanimation/BootAnimation.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp
index b2474f2..7ecac9b 100644
--- a/cmds/bootanimation/BootAnimation.cpp
+++ b/cmds/bootanimation/BootAnimation.cpp
@@ -630,7 +630,10 @@ bool BootAnimation::movie()
}
glDisable(GL_SCISSOR_TEST);
}
- glDrawTexiOES(xc, yc, 0, animation.width, animation.height);
+ // specify the y center as ceiling((mHeight - animation.height) / 2)
+ // which is equivalent to mHeight - (yc + animation.height)
+ glDrawTexiOES(xc, mHeight - (yc + animation.height),
+ 0, animation.width, animation.height);
eglSwapBuffers(mDisplay, mSurface);
nsecs_t now = systemTime();