Re: Swat!! Found another one.

2002-11-13 Thread Michael Nordström
On Tue, Nov 12, 2002, Chris Hawks wrote: I didn't (mean to) say that the dimensions were negative. My mistake. I have fixed the problem in the main trunk. /Mike ___ plucker-dev mailing list [EMAIL PROTECTED]

Re: Swat!! Found another one.

2002-11-12 Thread Michael Nordström
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,

Re: Swat!! Found another one.

2002-11-12 Thread Chris Hawks
) 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 $dc00 = 429498080, easily bigger than 48. --re: Re: Swat!! Found another one. Chris Christopher R

Swat!! Found another one.

2002-11-10 Thread Chris Hawks
Guys: I found that in 1.3 the viewer would sometimes report that the image size was too large, even tho it really wasn't. I tracked it down to line 442 in image.c: reqMem = imageWidth * imageHeight * pixelDepth; Gcc makes the type of the result the largest of the members (in this