[Vm-dev] byteSizeOf bug?

Andreas Raab andreas.raab at gmx.de
Wed Jan 13 17:13:55 UTC 2010


John M McIntosh wrote:
> So I was trying to build a 64bit VM this evening and it would die in  loadBitBltFromWarping
> where it check to see if the destination bit form has a byteSizeOf() that is equal to pitch * height
> this causes a prim failure before any drawing can occur. 
> 
> In the past if the form was 1,521,520 bytes this altered call returns 3,043,040.
> 
> I assume this is a bug since with the previous code I could build runnable 64bit VMs...?
> 
> Or then again is the bitBitPlugin wrong in it's assumption of slot size? 

Depends. In a 64bit image does a Bitmap contain 32 bit entities or 64 
bit entities? If the former, then byteSizeOf is wrong for Bitmap (and 
possibly other 32 bit containing entities). If the latter, then the 
pitch computation in BitBlt is wrong.

Cheers,
   - Andreas


More information about the Vm-dev mailing list