fixed reference to abs

svn path=/trunk/; revision=774
This commit is contained in:
Rex Jolliff 1999-11-17 21:17:10 +00:00
parent 96d5e2c715
commit 6e605e712e

View file

@ -615,7 +615,7 @@ int DIB_GetDIBWidthBytes(int width, int depth)
int DIB_GetDIBImageBytes (int width, int height, int depth)
{
return DIB_GetDIBWidthBytes( width, depth ) * abs( height );
return DIB_GetDIBWidthBytes( width, depth ) * (height < 0 ? -height : height);
}
/***********************************************************************