Fix GetFloat again, I guess.

Originally committed to SVN as r1013.
This commit is contained in:
Dan Donovan 2007-04-05 22:01:33 +00:00
parent ae307d9f74
commit f59df9233d
1 changed files with 5 additions and 1 deletions

View File

@ -241,7 +241,11 @@ void AegiVideoFrame::GetFloat(float *buffer) const {
if (flipped) src = data[0] + (h-y-1)*pitch[0]; // I think that it requires flipped data - amz
else src = data[0] + y*pitch[0];
for (unsigned int x=0;x<w;x++) {
temp = (*src++)*0.3 + (*src++)*0.4 + (*src++)*0.3;
//temp = (*src++)*0.3 + (*src++)*0.4 + (*src++)*0.3;
temp = (*src++)*0.3;
temp += (*src++)*0.4;
temp += (*src++)*0.3;
src += delta;
*dst++ = temp;
}