cast is floor. Use round instead.
 This fixes a few layout issues (that was due to smaller widnow size)
diff --git a/core/java/android/view/SurfaceView.java b/core/java/android/view/SurfaceView.java
index aa701af..fdc0c16 100644
--- a/core/java/android/view/SurfaceView.java
+++ b/core/java/android/view/SurfaceView.java
@@ -309,8 +309,8 @@
         // Use original size if the app specified the size of the view,
         // and let the flinger to scale up.
         if (mRequestedWidth <= 0 && mTranslator != null) {
-            myWidth *= appScale;
-            myHeight *= appScale;
+            myWidth = (int) (myWidth * appScale + 0.5f);
+            myHeight = (int) (myHeight * appScale + 0.5f);
             mScaled = true;
         } else {
             mScaled = false;