Hello to all, I've been lurking this list for a long time now in my spare time and have been impressed with the amount of knowledge being shared. Our company is starting to look at Palm OS development more seriously, and I am hoping to be able to begin participating in the list discussions. I don't have tremendous amounts of technical knowledge, but can share what I do have. :)
Here are two questions that have had me banging my head against the wall today: Do 1-bit high-density offscreen windows work properly when the device screen is in 16-bit mode? If so, what am I misunderstanding about how they work, especially with WinDrawBitmap? Here is a sample of code to demonstrate what I am seeing: -- PILRC SAMPLE -- -- CODE SAMPLE -- MemHandle resH; BitmapType *resP; BitmapType *bmpP; BitmapTypeV3 *bmpV3; Err error; WinHandle winH; RectangleType rect; // Create a 1-bit high-density bitmap and offscreen window. bmpP = BmpCreate(40, 40, 1, NULL, &error); bmpV3 = BmpCreateBitmapV3(bmpP, kDensityDouble, BmpGetBits(bmpP), NULL); winH = WinCreateBitmapWindow((BitmapType*)bmpV3, &error); // Draw a resource bitmap onto the new offscreen window. WinSetDrawWindow(winH); resH = DmGetResource(bitmapRsc, BMF_TestBitmap); resP = MemHandleLock(resH); WinDrawBitmap(resP, 0, 0); MemPtrUnlock(resP); DmReleaseResource(resH); // Draw a diagonal line across the offscreen window. WinDrawLine(0, 0, 20, 20); // Copy the offscreen window to the screen. RctSetRectangle(&rect, 0, 0, 20, 20); WinCopyRectangle(winH, WinGetDisplayWindow(), &rect, 0, 0, winPaint); // Delete the offscreen window and bitmaps. WinDeleteWindow(winH, false); BmpDelete(bmpP); BmpDelete((BitmapType*)bmpV3); -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
