On Mon, 11 Feb 2002, Keith Rollin wrote: > > the secret to having compatible applications is good design. > > > > check the hardware, if the hardware aint something you know, use API's > > otherwise poke, poke, and poke.. without this type of approach, games > > like lemmings would never happen on the palm (demo of ours). by allowing > > yourself to use API's as a last resort, you maintain some compatibility > > Aaron, > > A lot of people have questions about the right way to "check the > hardware". Do you have any guidelines on that? For instance, I know > of at least six different LCD controllers for Palm devices; how does > one write code to recognize those?
LCD controller detection is a total pain in the *ss. http://www.escribe.com/computing/pcpqa/m34862.html http://www.escribe.com/computing/pcpqa/m44786.html my previous rant(s) about it - there is no way of detecting LCD controllers right now - this is a feature i WISH was implemented. it really doesn't take long, set a few features - not exactly hard to do by licensee's. <rant> i have brought this up many times before, both in the forum and by talking to people at Palm.. it just goes un-noticed.. why? dont ask me - it is not like it is hard for palm et al to implement. hard for companies like palm et al to listen to developers like us - we just dont know anything *cough* :) there are some cool features of the epson controllers, not to mention some of the controllers that are appearing soon! there is no safe way to detect the hardware - not yet anyhow. SED1376 had picture in picture support... cool bananas.. and, screen rotation by HARDWARE! imagine haveing your palm on a 90 degree angle just by writing a small value to one of the LCD registers.. a perfect working "fliphack" - *sigh* </rant> as for writing directly to the screen, there is a way to get the bitmap data pointer of any window (including the LCD) - if you write directly to these data buffers, and, it happens to be the real gfx buffer and the device is a different endian, you'll get messy stuff on screen. http://www.escribe.com/computing/pcpqa/m32657.html there.. man, searching archives for some of the posts i have written is like finding a needle in a haystack *g* // az "i'm baaaaacckkk!" [EMAIL PROTECTED] http://www.ardiri.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
