mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
kodi: update upstream patches
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
70c7bfb761
commit
933b2dbb3b
@ -1,4 +1,4 @@
|
|||||||
From d695fce46de7f59b043a6a5feeb2997936159799 Mon Sep 17 00:00:00 2001
|
From 07a17ab720e13d56d8438aa460b0052aa9c02060 Mon Sep 17 00:00:00 2001
|
||||||
From: Rainer Hochecker <fernetmenta@online.de>
|
From: Rainer Hochecker <fernetmenta@online.de>
|
||||||
Date: Fri, 20 Mar 2015 10:25:48 +0100
|
Date: Fri, 20 Mar 2015 10:25:48 +0100
|
||||||
Subject: [PATCH] fix frametime for active vsync
|
Subject: [PATCH] fix frametime for active vsync
|
||||||
@ -111,3 +111,6 @@ index f8796d5..e07540f 100644
|
|||||||
static unsigned int GetFrameTime(); ///< returns the frame time in MS. Not threadsafe
|
static unsigned int GetFrameTime(); ///< returns the frame time in MS. Not threadsafe
|
||||||
static CDateTime GetLocalTime(time_t time);
|
static CDateTime GetLocalTime(time_t time);
|
||||||
|
|
||||||
|
--
|
||||||
|
1.9.1
|
||||||
|
|
@ -0,0 +1,26 @@
|
|||||||
|
From 68428562758adbcb597cadc05ba124a6bde97291 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Rainer Hochecker <fernetmenta@online.de>
|
||||||
|
Date: Fri, 13 Mar 2015 20:57:17 +0100
|
||||||
|
Subject: [PATCH] guilib: only update scrollinfo if frametime did change
|
||||||
|
|
||||||
|
---
|
||||||
|
xbmc/guilib/GUIFont.cpp | 3 ++-
|
||||||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/xbmc/guilib/GUIFont.cpp b/xbmc/guilib/GUIFont.cpp
|
||||||
|
index a7ee668..06232cb 100644
|
||||||
|
--- a/xbmc/guilib/GUIFont.cpp
|
||||||
|
+++ b/xbmc/guilib/GUIFont.cpp
|
||||||
|
@@ -52,7 +52,8 @@ float CScrollInfo::GetPixelsPerFrame()
|
||||||
|
delta = 100; // assume a minimum of 10 fps
|
||||||
|
m_lastFrameTime = currentTime;
|
||||||
|
// do an exponential moving average of the frame time
|
||||||
|
- m_averageFrameTime = m_averageFrameTime + (delta - m_averageFrameTime) * alphaEMA;
|
||||||
|
+ if (delta)
|
||||||
|
+ m_averageFrameTime = m_averageFrameTime + (delta - m_averageFrameTime) * alphaEMA;
|
||||||
|
// and multiply by pixel speed (per ms) to get number of pixels to move this frame
|
||||||
|
return pixelSpeed * m_averageFrameTime;
|
||||||
|
}
|
||||||
|
--
|
||||||
|
1.9.1
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user