diff options
| author | 2015-05-07 17:06:47 +0000 | |
|---|---|---|
| committer | 2015-05-07 17:06:47 +0000 | |
| commit | b65b66ccc251371c817abe75176a73f84565410e (patch) | |
| tree | 000e3ae2151dc5c85e23a5b9e3b7096ffd3f3f24 /cmds/bootanimation/BootAnimation.cpp | |
| parent | b53420d02def4277cf5b8a04da289b4291a9f24a (diff) | |
| parent | 2224eac30375a731f4ad38d6930dbc37b0855a0d (diff) | |
am 2224eac3: Merge "bootanimation: fix garbage line issue when screen height is odd." into lmp-mr1-modular-dev
* commit '2224eac30375a731f4ad38d6930dbc37b0855a0d':
bootanimation: fix garbage line issue when screen height is odd.
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 bb25ec6d12d3..21dc1e294ac7 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(); |