> I've made a walkthrough to use colors and bitmap families, and to let the
> application select AT RUNTIME the best color depth available for the runtime
> device.
> 
> follow the link:
> http://www.geocities.com/avihpit/bmf.txt
> 
> sorry for the txt format.
> 
> any comments will be most  welcome.

  a good start.. but it wont work on all devices :))

  you should add a check for making sure the API call WinScreenMode()
  is available.. you just need to check that it is 3.0 or above :))

  with your "default" for-loop attempt.. you can try something like
  this instead:

---
// change into the "highest" possible mode :P
{
  UInt32 depthsToTry[] = { 8, 2, 1 };
  UInt32 *depthPtr = &depthsToTry[0];

  // loop until a valid mode is found
  while (WinScreenMode(winScreenModeSet,NULL,NULL,depthPtr,NULL)) {

    // try the next depth
    depthPtr++;
  }
}
---

  that way, you might not want to go into 4bpp mode :))

  cheers

az.
--
Aaron Ardiri 
Java Certified Programmer      http://www.hig.se/~ardiri/
University-College i G�vle     mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN       
Tel: +46 26 64 87 38           Fax: +46 26 64 87 88
Mob: +46 70 656 1143           A/H: +46 8 668 78 72

if you enjoy it, then it aint work :) - rule #106 of life


--
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