Bug 815 is that rotation doesn't work under OS5 if the screen depth is
between 2 and 8, inclusive, and the original bitmap is 16 bits.  Mike
commented out the optimization code for 1.6, and that fixed the problem
temporarily.  However, it's still important to see what the bug is because I
am pretty sure it's not in the optimization code.

Here's my progress.  In SaveImageInStorageCache(), we have:
    DmWrite( cachePtr, 0, image->bitmap, bmpHeaderSize );
    DmWrite( cachePtr, bmpHeaderSize, BmpGetBits( image->bitmap ),
        bmpDataSize );

The interesting thing is that with screen depth set to 8, and image
optimization enabled, after these two function calls are executed,
BmpGlueGetBitDepth( image->bitmap ) returns 8, as it should, BUT
BmpGlueGetBitDepth( (void*)cachePtr ) does NOT return 8.  (I think it
returns 1, but I haven't checked at this point in the code.)  Somehow the
image gets corrupted upon being saved.

But in fact there seems to be good reason for such corruption--the color
table is not being saved in the cache!

Alex

--
Dr. Alexander R. Pruss
Department of Philosophy
Georgetown University
Washington, DC 20057-1133  U.S.A.
e-mail: [EMAIL PROTECTED]
online papers and home page: www.georgetown.edu/faculty/ap85
--------------------------------------------------------------------------
   "Philosophiam discimus non ut tantum sciamus, sed ut boni efficiamur."
       - Paul of Worczyn (1424)

_______________________________________________
plucker-dev mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-dev

Reply via email to