From 10355093765854053b2bff2ca96e8b0b9f2ba726 Mon Sep 17 00:00:00 2001
From: gordon1337 <gsysgordon@gmail.com>
Date: Sat, 8 Jun 2013 14:15:32 +0200
Subject: Console Render Bug caused by touch drag event

With starting the console the touch drag event is active without even touching the display.
This causes to render the console at any time it is displayed, which consumes alot of battery and heats up the device.
What the patch does is resetting the touch drag state to ensure it is only re-rendering the console when it it really needed.
---
 gui/console.cpp | 1 +
 1 file changed, 1 insertion(+)

(limited to 'gui')

diff --git a/gui/console.cpp b/gui/console.cpp
index 8a7a85ea3..ee3b5e580 100644
--- a/gui/console.cpp
+++ b/gui/console.cpp
@@ -274,6 +274,7 @@ int GUIConsole::Update(void)
     {
         // They're still touching, so re-render
         Render();
+        mLastTouchY = -1;
         return 2;
     }
     return 0;
-- 
cgit v1.2.3