At 10:49 AM -0500 2001/08/15, Richard Burmeister wrote:
>Thanks for posting the undocumented methods.  Do you think it will be safe
>to use HwrDisplayAttributes() in the future, given the upcoming changes in
>hardware, etc.?  What happens with HwrBacklight() and HwrDisplayAttributes()
>if the device doesn't have backlighting?

HwrDisplayAttributes will continue to be a supported API in future versions of the 
Palm OS. Although I really don't recommend 3rd party software call HAL-level APIs, 
it's far better than poking at the hardware directly. So...

If a device has backlight capability, HwrDisplayAttributes should return dispErrNoErr.
If a device does not have a backlight, HwrDisplayAttributes should return 
dispErrNotSupported.

The old HwrBacklight API does not provide a way to tell if the device has a backlight 
or not, so it just does nothing on those devices that do not have this capability. 
That's one of the reasons the API was deprecated and the functionality moved into 
HwrDisplayAttributes. In the future we may remove or re-purpose the HwrBacklight 
system API, so be sure to only call it on versions of the Palm OS <= 3.5.

Regards,

Jim Schram
Palm Incorporated
Partner Engineering


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