> one last thing i wanted to ask, i seached for gDeviceP and i got a real good
> explanation from ardiri about the new equivalents under 3.5. however i am
> having trouble with his explanation about getting the 
> 
> dDeviceP->baseAddr
> 
> he tells you concat the first two elements of bitmapP to get the equivlent.
> the first 2 elements are 
> Int16 width;
> Int16 height;

  well.. ignore that..

  use this instead:

---
/**
 * Determine the pointer to the bitmap data chunk for a specific window.
 *
 * @param win the window.
 * @return a pointer to the bitmap data chunk.
 */
void *
DeviceWindowGetPointer(WinHandle win)
{
  void   *result = NULL;
  UInt32 romVersion;

  // get rom version
  FtrGet(sysFtrCreator, sysFtrNumROMVersion, &romVersion);

  // palmos 3.5        - use BmpGetBits()
  if (romVersion >= sysMakeROMVersion(3,5,0,sysROMStageRelease,0)) {
    result = BmpGetBits(WinGetBitmap(win));
  }

  // palmos pre 3.5    - use standard technique
  else
    result = (void *)win->displayAddrV20;

  return result;
}
---

  problem solved..

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