I am developing an application specifically for the Tungsten W.  The 
application runs at 320 x 320 x 16 bits.  (Note, I'm using pilrc/gcc on OS X) 
  
I have a 320 x 320 x 24 bit BMP file in my resource. Constructor shows the BMP 
properly.  When I load the bmp to the screen The first few lines (probably 
about 10 lines) are perfect... but then it disintegrates into random dots. 
  
If I load a 160 x 160 x 24 bit BMP into the resource, I can load it perfectly 
into the screen and it indeed fits in the upper left quadrant (and I also 
tested drawing the 160 x 160 bmp at 0,0 and 0,160 and 160,0 and 160,60 and 
indeed got a 2 x 2 of my 160 x 160 BMP on the 320 x 320 screen, so I think 
I've got things setup ok). 
  
When I go larger, it loads perfectly for a portion of the screen, and then 
disentegrates into mush (e.g., a 250 x 250 image shows more perfect area before 
disentegrating than a 320 x 320).       
  
What am I doing wrong? Any help would be GREATLY appreciated. 
  
Here is my code:      
     
     WinScreenMode(winScreenModeGet,&O_w,&O_h,&O_d,&O_f); 
     t1 = 320; t2 = 320; t3 = 16; b1 = 1;   
     WinScreenMode(winScreenModeSet,&t1,&t2,&t3,&b1); 
     WinPushDrawState();  
     WinSetCoordinateSystem(kCoordinatesNative); 
  
     if ((bitmapH = DmGetResource(bitmapRsc,1))) { 
         bitmapP   = (BitmapType *)MemHandleLock(bitmapH); 
         bitmapPV3 = BmpCreateBitmapV3(bitmapP,kDensityDouble,BmpGetBits(bitmapP),0); 
         WinDrawBitmap((BitmapType *)bitmapPV3,0,0); 
  
         MemHandleUnlock(bitmapH); 
         DmReleaseResource(bitmapH); 
     } 
     WinPopDrawState();


-- 
David Cook -- Cookware Inc. -- [EMAIL PROTECTED]
TQworld and tranquility:  www.TQworld.com
Cookware Corporate:       www.cookwareinc.com
Hawaii/Asia Office: (808) 966-5049 (david cook)
Mainland US Office: (317) 769-5049 (deborah sellers)

Have you had tranquility today? Play now at http://www.tqworld.com


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

Reply via email to