Hi!
Or just use abs(x).
On Sun, Nov 30, 2008 at 8:43 AM, Aleksey Bragin aleksey@reactos.org wrote:
Instead of copying the whole formula, it could be done as ULONG Height; if (lpbmi->bmiHeader.biHeight >=0 ) Height = lpbmi->bmiHeader.biHeight; else Height = -lpbmi->bmiHeader.biHeight;
retSize = Height * ((lpbmi->bmiHeader.biWidth * lpbmi->bmiHeader.biPlanes * lpbmi-
bmiHeader.biBitCount + 31) & -32) / 8;
My Greatlordish editor was broken, James