From 1ab917229bececa692c83eb6d5f8d84bae1b112e Mon Sep 17 00:00:00 2001 From: lonnen Date: Wed, 2 Feb 2011 00:25:59 +0000 Subject: [PATCH] millisOffset changed in android to keep it consistent with the core --- android/core/src/processing/core/PApplet.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/core/src/processing/core/PApplet.java b/android/core/src/processing/core/PApplet.java index 822feb254..6f9065098 100644 --- a/android/core/src/processing/core/PApplet.java +++ b/android/core/src/processing/core/PApplet.java @@ -267,7 +267,7 @@ public class PApplet extends Activity implements PConstants, Runnable { *

* Used by the millis() function. */ - long millisOffset; + long millisOffset = System.currentTimeMillis(); /** * The current value of frames per second. @@ -503,7 +503,7 @@ public class PApplet extends Activity implements PConstants, Runnable { // code below here formerly from init() - millisOffset = System.currentTimeMillis(); + //millisOffset = System.currentTimeMillis(); // moved to the variable declaration finished = false; // just for clarity