---On Tue, 12 Nov 2002 11:44:00 +0100, Michael Nordstr�m said
> On Sun, Nov 10, 2002, Chris Hawks wrote:
>> it should be:
>> reqMem = (UInt32) imageWidth * (UInt32) imageHeight * (UInt32) pixelDepth;
>
> Yep, that's the way it was done in 1.2, but I missed to include that
> when changing the code to use the BmpGlue functions. It's not necessary
> for the pixelDepth, though (it's already unsigned.)
>
> I don't understand how the dimensions could be negative, though.
I didn't (mean to) say that the dimensions were negative. The result
of the multipliction is. Coord (imageWidth and imagHeight) is really an
Int16 (signed). Gcc promotes all members to the largest (Int16), so
320x300x4 = 384000 ($5dc00) as a (signed) Int16 $dc00 = -9216. And as a
UInt32 $ffffdc00 = 429498080, easily bigger than 480000.
--re: Re: Swat!! Found another one.
Chris
Christopher R. Hawks Software Engineer
Syscon Plantstar a Division of Syscon International
-------------------------------------------------------------------------
"Who is General Failure and why is he reading my hard disk?"
Microsoft spel chekar vor sail, worgs grate !!
-- Felix von Leitner, [EMAIL PROTECTED]
_______________________________________________
plucker-dev mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-dev