I want to show words on palmos5 platform using my custom font.In order to
show quickly,I create a bitmap(Low-Density), copy data to it,and show it.
The following code run well on sony NR70J(Palmos4.1) emulator,but it don't
be run on sony PEG-TJ25(Palmos5.2 and High-Density).I find the PEG-Tj25
device will die because of "Memmove". Please help me,and thanks.
BitmapType *bmpP;
UInt16 err, colortablesize;
UInt32 datasize, headersize, index = 0;
RGBColorType ourpalette[2] = {{0, 192, 192 ,0},{1, 255, 255, 0}};
bmpP = BmpCreate(XDOTS, YDOTS, 1, NULL, &err);
if (bmpP)
{
BmpGetSizes(bmpP, &datasize, &headersize);
colortablesize = BmpColortableSize(bmpP);
datasize = (XDOTS * YDOTS / 8L);
MemMove((UInt8 *)((UInt32)bmpP + (UInt32)headersize), myData, datasize);
WinPalette(winPaletteSet, 0, 2, ourpalette);
WinDrawBitmap(bmpP, 0, 0);
WinPalette(winPaletteSetToDefault, 0, 0, 0);
BmpDelete(bmpP);
}
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/