diff options
| author | 2024-05-13 16:14:53 +0000 | |
|---|---|---|
| committer | 2024-05-13 16:14:53 +0000 | |
| commit | 80208b9d71057e9fc0eb320ba6888d4d2ce29021 (patch) | |
| tree | 2aafef595f3f2f3a6abb46e1f30f0d56808a5ed8 /cmds/bootanimation/BootAnimation.cpp | |
| parent | 79e82a8e20b5d40e93e9c49b9854f2f4a238f2bd (diff) | |
| parent | 9231011c3e61043ce365ac0e9417aa23060dd475 (diff) | |
Merge "Fix Boot animation display issue on android 14 devices" into main
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
| -rw-r--r-- | cmds/bootanimation/BootAnimation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp index 77b74e9898b8..5adcd930e341 100644 --- a/cmds/bootanimation/BootAnimation.cpp +++ b/cmds/bootanimation/BootAnimation.cpp @@ -707,11 +707,11 @@ void BootAnimation::resizeSurface(int newWidth, int newHeight) { eglMakeCurrent(mDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); eglDestroySurface(mDisplay, mSurface); - mFlingerSurfaceControl->updateDefaultBufferSize(newWidth, newHeight); const auto limitedSize = limitSurfaceSize(newWidth, newHeight); mWidth = limitedSize.width; mHeight = limitedSize.height; + mFlingerSurfaceControl->updateDefaultBufferSize(mWidth, mHeight); EGLConfig config = getEglConfig(mDisplay); EGLSurface surface = eglCreateWindowSurface(mDisplay, config, mFlingerSurface.get(), nullptr); if (eglMakeCurrent(mDisplay, surface, surface, mContext) == EGL_FALSE) { |