This would only apply on a device that is running OS5.0.  On a Sonly
Clie, you wouldn't be calling Sony's high resolution library, so the
device will likely think your application is a standard 160x160
application.

If it's only fonts you're worried about, turning on the High Res
assistant might provide all you need.

If you want your whole application to handle 320x320 resolution, you'll
need to download Sony's SDK, and recompile against it, adding a few
calls to change the resolution, control which fonts you're using, etc.

Sony has redefined many of the Win* commands to understand the higher
resolution.  This is a good thing, because your application looks
great.  This is a bad thing, though, because you'll have to have your
own wrapper calls around such functions:

if (bSonyHires) {
  HWWinPaintChars(hrlibRefNum,"String",5,200,300);
} else {
  WinPaintChars("String",5,100,150);
}

or, better yet:

void myWinPaintChars(char *string, short len, short x, short y)
{
  if (bSonyHires) {
    HWWinPaintChars(hrlibRefNum,string,len,x*2,y*2);
  } else {
    WinPaintChars(string,len,x,y);
  }
}

Mind you, this wouldn't get you accurate placement of your fonts, as
they've changed size potentially, too.

Basically, you'll need to suck it and see if it handles it for you.

-Ken

On Tue, 2002-09-24 at 14:20, Ron Clabo wrote:
> I'm starting to test my palm app on the Sony Clie and it's double density
> screen.  Even though I've compiled my app with the new SDK 5.0 my app is
> using chunky looking fonts on the Clie rather than the double density fonts.
> Anyone know why?  I was under the impression that the SDK 5.0 handled the
> use of the better fonts on double density displays automatically (ie. no new
> code required).  What gives?
> 
> 
> Also,  when I search the news groups for information on my palm programming
> questions I almost always find good info.  But lately I've been searching
> for Clie specific infomation and I'm having an impossible time finding old
> posts.  Somewhere out here on the web must exist a cluster of Clie
> developers...anyone know how to hook up with them?  Know of any Clie
> specific forums or Clie specific web developer sites (other than sony's)?
> Any info in this regard would be of great help.
> 
> -Ron
> Amherst, NH
> 
> 
> 
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe, please see 
>http://www.palmos.com/dev/support/forums/








-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to