From 8fb97f1a3a488af82184d4d1ac27c0eb62cbbc97 Mon Sep 17 00:00:00 2001 From: "sha..rd" Date: Wed, 20 Apr 2011 00:39:51 +0000 Subject: [PATCH] * Call timer.reset() when gaining focus to fix "object speedup after alt-tab" issue git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7264 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../lwjgl-ogl/com/jme3/system/lwjgl/LwjglAbstractDisplay.java | 1 + 1 file changed, 1 insertion(+) diff --git a/engine/src/lwjgl-ogl/com/jme3/system/lwjgl/LwjglAbstractDisplay.java b/engine/src/lwjgl-ogl/com/jme3/system/lwjgl/LwjglAbstractDisplay.java index 58bb743dc..df174b6ab 100644 --- a/engine/src/lwjgl-ogl/com/jme3/system/lwjgl/LwjglAbstractDisplay.java +++ b/engine/src/lwjgl-ogl/com/jme3/system/lwjgl/LwjglAbstractDisplay.java @@ -194,6 +194,7 @@ public abstract class LwjglAbstractDisplay extends LwjglContext implements Runna if (wasActive != Display.isActive()) { if (!wasActive) { listener.gainFocus(); + timer.reset(); wasActive = true; } else { listener.loseFocus();