Merge "bootanimation: fix garbage line issue when screen height is odd." into lmp-mr1-modular-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
2224eac303
@@ -630,7 +630,10 @@ bool BootAnimation::movie()
|
|||||||
}
|
}
|
||||||
glDisable(GL_SCISSOR_TEST);
|
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);
|
eglSwapBuffers(mDisplay, mSurface);
|
||||||
|
|
||||||
nsecs_t now = systemTime();
|
nsecs_t now = systemTime();
|
||||||
|
|||||||
Reference in New Issue
Block a user