Fix the size of VideoPlayer is incorrect on android.

This commit is contained in:
Dhilan007 2014-07-28 10:09:46 +08:00
parent 66e54c3a77
commit f7a08d5697
1 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ public class Cocos2dxVideoView extends SurfaceView implements MediaPlayerControl
mViewHeight = maxHeight;
if (mVideoWidth != 0 && mVideoHeight != 0) {
fixSize(mViewLeft, mViewTop, mViewWidth, mVideoHeight);
fixSize(mViewLeft, mViewTop, mViewWidth, mViewHeight);
}
}
@ -324,7 +324,7 @@ public class Cocos2dxVideoView extends SurfaceView implements MediaPlayerControl
if (mFullScreenEnabled) {
fixSize(0, 0, mFullScreenWidth, mFullScreenHeight);
} else {
fixSize(mViewLeft, mViewTop, mViewWidth, mVideoHeight);
fixSize(mViewLeft, mViewTop, mViewWidth, mViewHeight);
}
}