[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeextragear-1/amarok/amarok/analyzers
From: Adam Pigg <adam () piggz ! fsnet ! co ! uk>
Date: 2004-02-20 20:22:38
Message-ID: 20040220202238.234029962 () office ! kde ! org
[Download RAW message or body]
CVS commit by piggz:
added some basic bounds checking
M +7 -1 glanalyzer.cpp 1.17
--- kdeextragear-1/amarok/amarok/analyzers/glanalyzer.cpp #1.16:1.17
@@ -50,4 +50,10 @@ void GLAnalyzer::analyze( const Scope &s
y = float(s[i*2] * 30.0f); //Should multiply by 20 but it looks crappy
+ //Some basic bounds checking
+ if (y > 30)
+ y = 30;
+ else if (y < 0)
+ y = 0;
+
if((y - m_oldy[i]) < -0.5f) // Going Down Too Much
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic