Correctly set the viewport on window resize.

Change-Id: Idec325264d85feda76d4cda00fa511aaac82cf64
This commit is contained in:
Romain Guy
2010-09-07 17:16:32 -07:00
parent 018b0d2918
commit 53389bdcdf
4 changed files with 108 additions and 2 deletions

View File

@@ -946,8 +946,8 @@ public final class ViewRoot extends Handler implements ViewParent, View.AttachIn
mSurfaceHolder.mSurfaceLock.unlock();
}
}
if (hwIntialized) {
if (hwIntialized || (windowShouldResize && mHwRenderer != null)) {
mHwRenderer.setup(mWidth, mHeight);
}