You must prepare hires bitmaps, or convert old versions to V3. Here is some code which can help you.

#define BITMAP 1000      //bmp resource id
BitmapTypeV3* bmpV3;
BitmapType* bitmapP;
MemHandle bitmapH;
int x,y;

WinPushDrawState();
WinSetCoordinateSystem(kCoordinatesNative);
//here you are drawing in 320x320
bitmapH = DmGetResource(bitmapRsc, BITMAP);
bitmapP = (BitmapType*) MemHandleLock(bitmapH);
bmpV3 = BmpCreateBitmapV3(bitmapP, kDensityDouble, BmpGetBits(bitmapP), 0); //conversion to V3 bitmaps, because resources are old bitmaps
WinDrawBitmap((BitmapType *)bmpV3, x, y); // x and y are coords from 0 to 320
BmpDelete((BitmapType*)bmpV3);
MemHandleUnlock(bitmapH);
DmReleaseResource(bitmapH);
WinPopDrawState();


I hope this would help you ;-). If somebody knows better solution, please post it.
Honzinho


Regis Daniel de Oliveira napsal(a):

Hy all!

How can i develop 320x320 apps to Palm using Code Warrior?

Thanks!







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

Reply via email to