My interpretation was that you were asking WinScreenMode, "given this resolution, what 
color modes are available."
(Which only makes sense if the max color depth shrinks with increasing screen size.)

Of course, you could invert this and say "what's the highest resolution possible in 
16-bit mode?"

Or you could just enum each possible graphics mode.  I think this makes a lot of sense 
for a platform that (right now) supports a
very small number of known modes.)

I can't wait to see how fast they've managed to get screen updates going at 320 x 320.


Ben Combee wrote:

> "Alan Ingleby" <[EMAIL PROTECTED]> wrote in message
> news:42495@palm-dev-forum...
> >
> > This is an issue for all developers.
> >
> > What happens to our programs which presume screen size of 160x160?
> >
> > Is there any sample code which shows how we can take these varying
> > resolutions into account?
>
> I'd expect that the default mode has the hardware LCD controller double
> every pixel, so there is no effect.
>
> If you look at the 3.5 API, all the hooks are already there for higher
> resolutions.  You can pass a width and height to WinScreenMode's
> winScreenModeSet command.  The one hole in 3.5's API is the ability to get
> the supported screen dimensions; you can get the color depths, and you can
> get the dimensions of the current mode, but there is no discovery mechanism
> to find out sizes other than 160x160 are available.
>
> WinGetDisplayExtent may work if it always returns the maximum resolution.
> However, that might not work for software that assumed that it returned the
> extent of the current display mode.
>
> I wonder if you could implement a pseduo-160x160 mode where you doubled all
> the coordinates and extents in a form at form load time and then drew the
> controls at the higher resolution?  You'd still have to manage the standard
> drawing functions as if you were in 160x160 mode, but it might be an
> interesting project.
>
> --
> Ben Combee
> Veriprise Wireless <http://www.veriprise.com>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe, please see 
>http://www.palmos.com/dev/tech/support/forums/


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