Re: SJ20 HiRes grayscale mode

2003-07-08 Thread Adam McDaniel
On Tue, Jul 08, 2003 at 04:13:16PM -0400, Chris Pepper wrote:
> >When you run the viewer for the first time, it picks your device's
> >default bit depth as the initial setting. Your device merely responded
> >by saying its bit depth was 1bpp by default :)
> 
>   Interesting. My Tungsten C was set to 8 initially. Should 
> Plucker choose the highest available, rather than the system default? 
> This is what I would prefer, fwiw.

Once you tell plucker what bit depth you like, it remembers the
setting within the preferences :)

-- 
Adam McDaniel
Array.org
Calgary, AB, Canada
___
plucker-dev mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-dev


Re: SJ20 HiRes grayscale mode

2003-07-08 Thread Michael Nordstrom
On Tue, Jul 08, 2003, Chris Pepper wrote:
> Should Plucker choose the highest available, rather than the
> system default? 

Nope. The text rendering is faster at the default bit depth, so
that's what we should start with.

/Mike

___
plucker-dev mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-dev


Re: SJ20 HiRes grayscale mode

2003-07-08 Thread Chris Pepper
At 1:54 PM -0600 2003/07/08, Adam McDaniel wrote:
On Tue, Jul 08, 2003 at 01:34:30PM -0500, Nguyen The Toan wrote:
 On Tuesday July 8 2003 12:44 pm, Alexander R. Pruss wrote:
 > Using the general prefs settings to change to depth 4 doesn't work?  Alex
 Yes, it does. I miss it the first time.
When you run the viewer for the first time, it picks your device's
default bit depth as the initial setting. Your device merely responded
by saying its bit depth was 1bpp by default :)
	Interesting. My Tungsten C was set to 8 initially. Should 
Plucker choose the highest available, rather than the system default? 
This is what I would prefer, fwiw.

Chris Pepper
--
Chris Pepper:   
Rockefeller University: 
___
plucker-dev mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-dev


Re: SJ20 HiRes grayscale mode

2003-07-08 Thread Adam McDaniel
On Tue, Jul 08, 2003 at 01:34:30PM -0500, Nguyen The Toan wrote:
> On Tuesday July 8 2003 12:44 pm, Alexander R. Pruss wrote:
> > Using the general prefs settings to change to depth 4 doesn't work?  Alex
> 
> 
> Yes, it does. I miss it the first time.

When you run the viewer for the first time, it picks your device's
default bit depth as the initial setting. Your device merely responded
by saying its bit depth was 1bpp by default :)

-- 
Adam McDaniel
Array.org
Calgary, AB, Canada
___
plucker-dev mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-dev


Re: SJ20 HiRes grayscale mode

2003-07-08 Thread Nguyen The Toan
On Tuesday July 8 2003 12:44 pm, Alexander R. Pruss wrote:
> Using the general prefs settings to change to depth 4 doesn't work?  Alex


Yes, it does. I miss it the first time.

Thanks,
Toan

___
plucker-dev mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-dev


Re: SJ20 HiRes grayscale mode

2003-07-08 Thread Alexander R. Pruss
Using the general prefs settings to change to depth 4 doesn't work?  Alex
--
Dr. Alexander R. Pruss
Department of Philosophy
Georgetown University
Washington, DC 20057-1133  U.S.A.
e-mail: [EMAIL PROTECTED]
online papers and home page: www.georgetown.edu/faculty/ap85

-
   "Philosophiam discimus non ut tantum sciamus, sed ut boni efficiamur."
   - Paul of Worczyn (1424)
- Original Message - 
From: "Nguyen The Toan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 08, 2003 1:15 PM
Subject: SJ20 HiRes grayscale mode


>
> Hi, I have a Clie SJ20 which supports HiRes 16 grayscale. However, the
default
> HiRes mode is B&W. One needs to explicitly set the screen depth to 4 in
order
> to get HiRes 16 grayscale. I hope the following code from Vexed source can
> help:
>
>
> Errerr;
> UInt16 cBpp;
> UInt32 dwVer;
> UInt32 dwDepth = 0;
>
> UInt32 dwDepthsSupported = 0;
> static Int16 gaBpps[] = { 0 /*24*/, 0 /* 16 */, 8, 4, 2, 1 };
> Int8   n;
>
> FtrGet(sysFtrCreator, sysFtrNumROMVersion, &dwVer);
> if (dwVer < 0x03003000) {
> cBpp = 1;
> return cBpp;
> }
>
> // Get the depths supported
> WinScreenMode(winScreenModeGetSupportedDepths, NULL, NULL,
&dwDepthsSupported,
> NULL);
>
> // Set the highest depth possible
>
> cBpp = 1;
> for (n = 0; n < 6; n++) {
> if (dwDepthsSupported & (1UL << (gaBpps[n] - 1))) {
> WinScreenMode(winScreenModeGet, NULL, NULL, &dwDepth,
NULL);
> if (dwDepth != gaBpps[n]) {
> dwDepth = gaBpps[n];
> err = WinScreenMode(winScreenModeSet, NULL, NULL,
> &dwDepth, NULL);
> if (err == 0) {
> cBpp = (int)dwDepth;
> break;
> }
> } else {
> cBpp = (int)dwDepth;
> break;
> }
> }
> }
>
>
> ___
> plucker-dev mailing list
> [EMAIL PROTECTED]
> http://lists.rubberchicken.org/mailman/listinfo/plucker-dev
>

___
plucker-dev mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-dev


SJ20 HiRes grayscale mode

2003-07-08 Thread Nguyen The Toan

Hi, I have a Clie SJ20 which supports HiRes 16 grayscale. However, the default 
HiRes mode is B&W. One needs to explicitly set the screen depth to 4 in order 
to get HiRes 16 grayscale. I hope the following code from Vexed source can  
help:


Errerr;
UInt16 cBpp;
UInt32 dwVer;
UInt32 dwDepth = 0;

UInt32 dwDepthsSupported = 0;
static Int16 gaBpps[] = { 0 /*24*/, 0 /* 16 */, 8, 4, 2, 1 };
Int8   n;

FtrGet(sysFtrCreator, sysFtrNumROMVersion, &dwVer);
if (dwVer < 0x03003000) {
cBpp = 1;
return cBpp;
}

// Get the depths supported
WinScreenMode(winScreenModeGetSupportedDepths, NULL, NULL, &dwDepthsSupported, 
NULL);

// Set the highest depth possible

cBpp = 1;
for (n = 0; n < 6; n++) {
if (dwDepthsSupported & (1UL << (gaBpps[n] - 1))) {
WinScreenMode(winScreenModeGet, NULL, NULL, &dwDepth, NULL);
if (dwDepth != gaBpps[n]) {
dwDepth = gaBpps[n];
err = WinScreenMode(winScreenModeSet, NULL, NULL, 
&dwDepth, NULL);
if (err == 0) {
cBpp = (int)dwDepth;
break;
}
} else {
cBpp = (int)dwDepth;
break;
}
}
}


___
plucker-dev mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-dev