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:
@@ -601,7 +601,7 @@ GraphForegroundStream (uint8 *data, sint32 width, sint32 height)
|
||||
// Record the maximum amplitude (sort of)
|
||||
frame_sum += max_a;
|
||||
++frames;
|
||||
if (frames == 8)
|
||||
if (frames == AGC_FRAME_COUNT)
|
||||
{ // Got a full page
|
||||
frame_sum /= AGC_FRAME_COUNT;
|
||||
// Record the page
|
||||
|
||||
Reference in New Issue
Block a user