At 1:15 AM +0200 5/31/02, Aaron Ardiri wrote:
>On Thu, 30 May 2002, Robert Purcell wrote:
>>  No, I don't want the resources...I just want to understand how this
>>  is done.  How can the Palm OS use bitmap resources that are not in
>>  the Tbmp format??  What resource ID do you use to draw these bitmaps?
>
>   just because it is Tbmp - doesn't mean you have to use WinDrawBitmap()
>   to draw it :P you can define whatever you like, maybe your own compression
>   and decompression/drawing routines. i can easily craete a Tbmp resource
>   like so:
>
>DATA "Tbmp" ID 10 "myrawdata.dat"
>
>   try loading the programs into a program like prc-explorer.. maybe
>   constructor is not capable of displaying everything :) maybe astraware
>   are using Tbmp resources - [/me has a look]
>
>   bejewelled has no Tbmp resources, the bitmaps look like they are
>   stored as aPPP resources :) which, they are probably defining internally
>   to prevent people "stealing" their gfx :P

Storing non-standard data in a standard resource is probably not a 
good idea.  Defining a new resource type like 'aPPP' is good, but 
redefining 'Tbmp' is not.  There's a very good chance that you'll 
crash in Palm OS 5.0, as it tries to automatically convert these 
presumably standard resources into ARM native format.

-- Keith Rollin
-- Palm OS Emulator engineer

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

Reply via email to