Minor fix: frame count should not be hardcoded here

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3190 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2009-10-07 13:19:09 +00:00
parent 57816ba18d
commit 49d4e134fb
+1 -1
View File
@@ -601,7 +601,7 @@ GraphForegroundStream (uint8 *data, sint32 width, sint32 height)
// Record the maximum amplitude (sort of) // Record the maximum amplitude (sort of)
frame_sum += max_a; frame_sum += max_a;
++frames; ++frames;
if (frames == 8) if (frames == AGC_FRAME_COUNT)
{ // Got a full page { // Got a full page
frame_sum /= AGC_FRAME_COUNT; frame_sum /= AGC_FRAME_COUNT;
// Record the page // Record the page