[ros-dev] [ros-diffs] [jimtabor] 37766: - Sync in rev 37720: Magnus Olsen, add GdiGetBitmapBitsSize is a new api from windows xp sp3, the code was tested in vs2003.

James Tabor jimtabor.rosdev at gmail.com
Mon Dec 1 01:06:59 CET 2008


Hi!

Or just use abs(x).

On Sun, Nov 30, 2008 at 8:43 AM, Aleksey Bragin <aleksey at 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


More information about the Ros-dev mailing list