jms
2003-06-26 21:53:38 UTC
I'm trying to dynamically create some of the new V3 bitmaps as per the
simplified code snippet below....
BitmapPtr bitmapHi =
BmpCreate(BASE_WIDTH*scale,BASE_HEIGHT*scale,4,colorTable, &dummy);
BitmapPtr bitmapHi3 = (BitmapType*)BmpCreateBitmapV3(bitmapHi,
kDensityLow,BmpGetBits(bitmapHi),colorTable);
WinDrawBitmap(bitmapHi,x,y);
WinDrawBitmap(bitmapHi3,x,y);
The drawing of the version 2 bitmap works every time, but the drawing of the
version 3 bitmap causes a spontanious soft reset about half the time on my
Tungsten T PalmOS 5.0.
Its not something I can replicate with the simulator, in the real code I
check all the returns and each function says it was successfull, and it
happens even with a low density V3 bitmap as above, although eventually I
want double density.
My bitmaps are large (320x180), are 4bpp, and are drawn partially outside
the screen with a clipping rectangle on screen.
Anyone had any similar troubles? Is it a known bug? Are there any known
workarounds or size limits?
Any help would be very much appreciated, I'm tearing my hair out at the
moment.
simplified code snippet below....
BitmapPtr bitmapHi =
BmpCreate(BASE_WIDTH*scale,BASE_HEIGHT*scale,4,colorTable, &dummy);
BitmapPtr bitmapHi3 = (BitmapType*)BmpCreateBitmapV3(bitmapHi,
kDensityLow,BmpGetBits(bitmapHi),colorTable);
WinDrawBitmap(bitmapHi,x,y);
WinDrawBitmap(bitmapHi3,x,y);
The drawing of the version 2 bitmap works every time, but the drawing of the
version 3 bitmap causes a spontanious soft reset about half the time on my
Tungsten T PalmOS 5.0.
Its not something I can replicate with the simulator, in the real code I
check all the returns and each function says it was successfull, and it
happens even with a low density V3 bitmap as above, although eventually I
want double density.
My bitmaps are large (320x180), are 4bpp, and are drawn partially outside
the screen with a clipping rectangle on screen.
Anyone had any similar troubles? Is it a known bug? Are there any known
workarounds or size limits?
Any help would be very much appreciated, I'm tearing my hair out at the
moment.