diff options
Diffstat (limited to 'cmds')
-rw-r--r-- | cmds/app_process/Android.mk | 1 | ||||
-rw-r--r-- | cmds/bootanimation/BootAnimation.cpp | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/cmds/app_process/Android.mk b/cmds/app_process/Android.mk index dd5e0ea..ce6d7b5 100644 --- a/cmds/app_process/Android.mk +++ b/cmds/app_process/Android.mk @@ -56,6 +56,7 @@ LOCAL_MODULE_TAGS := eng LOCAL_MODULE_PATH := $(TARGET_OUT_EXECUTABLES)/asan LOCAL_MODULE_STEM := app_process LOCAL_ADDRESS_SANITIZER := true +LOCAL_CLANG := true LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp index bb25ec6..21dc1e2 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(); |