Hello all, I've got an app that displays a bitmap family with WinDrawBitmap. The depths in this bitmap family are 1, 2, 4, and 16 bit. On an m505, this displays the 16 bit version, as it should. If I recompile with a bitmap family of 1, 2, and 4 bit images, the 4 bit image shows on the m505 -- as it should. Both of these compiles, however, result in a one bit image being displayed on a Sony Clie, which should be showing the 4 bit version. The m505 always displays the correct depth, while the Clie always displays in one bit.
I think the m505 experiment demonstrates that my code is okay, so I'm confused. Is there a Clie issue? (The Clie is the only device with between 1 bit and 16 bit color that I own to test this on, but the m505 proves the 4 bit bitmap is, in fact, there.) Although I think this code is pretty straightforward, maybe I'm missing something, so here is the relevant chunk: // This bitmap is coming out of a database, // so first get a handle hrecord = DmQueryRecord( muxlesDB1, DB_BITMAP_RECORD_NUMBER0 ); pImage2 = MemHandleLock( hrecord ); // Now get a pointer to the correct part of the record pImage3 = (BitmapPtr)(pImage2 + DB_BMP_START); mapWindow = WinCreateWindow( &gMapWinBounds, noFrame, false, false, &winError ); fullWindow = WinSetDrawWindow( mapWindow ); WinEraseWindow(); WinDrawBitmap( pImage3, gXOff, gYOff ); Rather befuddled, -Stan [EMAIL PROTECTED] cell: (617) 216-9814 fax: (617) 547-5297 http://www.xenware.com/ http://store.yahoo.com/xenware -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
