diff options
Diffstat (limited to 'cmds/bootanimation')
-rw-r--r-- | cmds/bootanimation/Android.mk | 4 | ||||
-rw-r--r-- | cmds/bootanimation/BootAnimation.cpp | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/cmds/bootanimation/Android.mk b/cmds/bootanimation/Android.mk index 2ee586f..cc3b6f8 100644 --- a/cmds/bootanimation/Android.mk +++ b/cmds/bootanimation/Android.mk @@ -25,6 +25,10 @@ LOCAL_SHARED_LIBRARIES := \ libgui \ libtinyalsa +ifeq ($(TARGET_CONTINUOUS_SPLASH_ENABLED),true) + LOCAL_CFLAGS += -DCONTINUOUS_SPLASH +endif + LOCAL_MODULE:= bootanimation ifdef TARGET_32_BIT_SURFACEFLINGER diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp index b832a35..5b9ecd0 100644 --- a/cmds/bootanimation/BootAnimation.cpp +++ b/cmds/bootanimation/BootAnimation.cpp @@ -562,6 +562,7 @@ bool BootAnimation::movie() mZip->endIteration(cookie); +#ifndef CONTINUOUS_SPLASH // clear screen glShadeModel(GL_FLAT); glDisable(GL_DITHER); @@ -571,6 +572,7 @@ bool BootAnimation::movie() glClear(GL_COLOR_BUFFER_BIT); eglSwapBuffers(mDisplay, mSurface); +#endif glBindTexture(GL_TEXTURE_2D, 0); glEnable(GL_TEXTURE_2D); |