From cc903494fa4c31ffddc4a80361c4e43cd3ed4c2a Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Fri, 12 Mar 2010 12:46:04 -0800 Subject: [PATCH] Fix stop point for physics in landscape. Change-Id: I4ca8fcf9d65746116b3c244e724344d8f90eeba0 --- res/raw/allapps.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/res/raw/allapps.rs b/res/raw/allapps.rs index 312800fc4e..e28ab0a79f 100644 --- a/res/raw/allapps.rs +++ b/res/raw/allapps.rs @@ -389,9 +389,12 @@ main(int launchID) // icons & labels int iconCount = state->iconCount; g_PosMax = ((iconCount + 3) / 4) - 4; + if (getWidth() > getHeight()) { + g_PosMax -= 2; + } if (g_PosMax < 0) g_PosMax = 0; - updatePos(0.1f); + updatePos(); updateReadback(); //debugF(" draw g_PosPage", g_PosPage);