diff options
| author | 2015-05-04 15:24:12 -0700 | |
|---|---|---|
| committer | 2015-05-05 13:21:27 -0700 | |
| commit | d13d504e4b7548f0ce4f9c4f0eee5c1ac2ce6794 (patch) | |
| tree | 6686b4699d67f62045f51ed88b1dddcc1b9fdd46 /cmds/bootanimation/BootAnimation.cpp | |
| parent | d3de33e9dfaee6c0336a51e774632813b3344fca (diff) | |
bootanimation: fix garbage line issue when screen height is odd.
bug:20032072
Change-Id: I784fb6f815b22c37dcd7354729aca346726196d9
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
| -rw-r--r-- | cmds/bootanimation/BootAnimation.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp index b2474f2f18bc..7ecac9b8c350 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(); |