Hi,

I have a BITMAPFAMILYEX (low/highres image) which I draw to the screen
using WinDrawBitmap. What I notice is that I can not have the
BITMAPFAMILYEX in little endian mode (-LE32 switch at pilrc) without all
the colors getting seriously messed up.

.c:
        bmpH = DmGet1Resource('abmp', 2700);
        bmpP = MemHandleLock(bmpH);
        WinDrawBitmap(bmpP, 0, 15);

.rcp:

        BITMAPFAMILYEX ID 2700
        COMPRESS
        BEGIN
                BITMAP "image_160.bmp" DENSITY 1 BPP 8
                BITMAP "image_320.bmp" DENSITY 2 BPP 8
        END

compiling with 

        pilrc -LE32 test.rcp

makes the colors all weird. 

Using

        pilrc test.rcp
        mv Tbmp0a8c.bin abmp0a8c.bin     8-)

works fine (though this is only for testing as I need this image to be
in little endian mode later on).

I have an external tool that creates 'little endian' bitmap families
with both low and high res, which I can paint with the above C code
without any problem. So I suspect a problem with pilrc. Or am I missing
something?

P.S.: Tested with pilrc 2.9p10 and 3.0b5 from CVS (1 hour old).

-- 
Daniel Seifert <[EMAIL PROTECTED]>


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to