> i use Pilrc to create my resources for PalmOS 3.0 and later ... But now, i´m
> needing to run my program on a device running PalmOS 2.0 and i found out
> that PilRC creates bitmap resources version 1 (BitmapVersionOne ) and it´s
> only compatible with PalmOS 3.0 and later ...

  have you tried running your program on a 2.0 device? i dont recall if 
  the rom actually checked the version of the bitmap :) and, from memory
  my apps run ok on a 2.0 rom image (haven't tried a device for long time)
 
> What should I do to make PilRC build my bitmap resources as version 0
> (BitmapVersionZero) ?  ... This one , is compatible with palmOS 1.0 an later
> as documented in PalmOS Reference Guide...

  dont believe the docs 100% :) but, you can check the PilRC source:

---
  // configure the bitmap header
  switch (bitmaptype)
  {
    case rwBitmap:
    case rwBitmapGrey:
    case rwBitmapGrey16:
    case rwBitmapColor16:
         rcbmp->pixelsize = cbitsPel;
         rcbmp->version   = 1;
         break;

    case rwBitmapColor256:
         rcbmp->pixelsize = cbitsPel;
         rcbmp->version   = 2;
---

  hmm.. if i need to change it, let me know :) but, i think you know
  how to change it yourself if deemed necessary :P but, if i must...
  [by the way, dont do it - read why below]

---
  // configure the bitmap header
  switch (bitmaptype)
  {
    case rwBitmap:
         rcbmp->pixelsize = cbitsPel;
         rcbmp->version   = 0;
         break;
    
    case rwBitmapGrey:   
    case rwBitmapGrey16: 
    case rwBitmapColor16:
         rcbmp->pixelsize = cbitsPel;
         rcbmp->version   = 1;
         break;
---

  i will check the docs myself and verify that this is required.. i am
  pretty sure my games run ok on 2.0 - even when the bitmap version is
  set to 1, your problem might not be this at all :>

  [off checking docs]

  pp458-459 of Palm OS 3.5 SDK Reference

   - BitmapVersionZero   0 - 1.0 or later
   - BitmapVersionOne    1 - 3.0 or later
   - BitmapVersionTwo    2 - 3.5 or later

  oh well.. looks like the docs help with your story :) now, lets see
  how the docs work in relation to "field test" :P

  [checking my games on 2.0 rom]

    dkjr      - works fine
    dkung     - works fine
    hoards    - works fine
    oktopus   - works fine
    parashoot - works fine
    phire     - works fine

  you sure you need this change done?.. my games use bitmap version 1
  and work perfectly on a 2.0 rom image.. i'll fudge PilRC to set 
  version to 0 now.. just to satisfy yours and my own curiosity.. 

  [off compiling update to PilRC]
  [checking my games on 2.0 rom]
  [checking my games on 3.5 rom]

  woah.. sure. it works.. but.. now.. on a color device, all my bitmaps
  are black and white.. looks like version 0 of the bitmap doesn't 
  support bitmap families - which is probably why i changed it in the
  first place to 1 :=) [i did the change over 14 months ago now]

  PilRC will keep setting the bitmap version number to 1. setting it 
  to 0 causes problems.. and, setting it to 1 still allows the 
  application to work on 2.0 (which is what you asked) - so, no 
  go on this change.. :)

  maybe you read the docs to much :)) the docs can be wrong too :)
  yes, i know you emailed me personally about this.. but:

    a) i was on vacation
    b) i felt like sh*t that day :P
    c) i was on vacation.. :P
  
  i also feel like sh*t today too.. gotta love this flu going around.
  must have brought it back with me from australia :)

// az 
[EMAIL PROTECTED]
http://www.ardiri.com/    <--- free games!




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

Reply via email to