Sorry,
  a TGF_UINT32 is an UInt32.


----------
>From: "Richard Burmeister" <[EMAIL PROTECTED]>
>To: "Palm Developer Forum" <[EMAIL PROTECTED]>
>Subject: Re: Bus error in WinScreenMode(WinSreenModeSet, ...) call
>Date: Mer 20 d�c 2000 17:18
>

> What is a TGF_UINT32 ?
>
> ----- Original Message -----
> From: "nhamoudi" <[EMAIL PROTECTED]>
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Sent: Wednesday, December 20, 2000 9:27 AM
> Subject: Bus error in WinScreenMode(WinSreenModeSet, ...) call
>
>
>> Hi,
>>   I have a bus error with the following code on a Palm VIIx (PalmOS
> 3.5.0).
>>   I do the test on the emulator 3.08a on a Mac with the debug ROM.
>>   Can anyone help me?
>>
>> Thanks,
>> Nourredine
>>
>>
>>
>>   TGF_UINT32 supportedDepths;
>>   Err err = WinScreenMode(winScreenModeGetSupportedDepths,
>>             NULL, NULL, &supportedDepths, NULL);
>>
>>   // Get the best depth
>>  if (!err)
>>  {
>>   if (supportedDepths & 0x80)
>>   {
>>    supportedDepths = 8;
>>   }
>>   else if (supportedDepths & 0x08)
>>   {
>>    supportedDepths = 4;
>>   }
>>   else if (supportedDepths & 0x02)
>>   {
>>    supportedDepths = 2;
>>   }
>>   else
>>   {
>>    supportedDepths = 1;
>>   }
>>  }
>>  err = WinScreenMode(winScreenModeSet, NULL, NULL, &supportedDepths,
> NULL);
>>
>> --> Bus error
>>
>> --
>> 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/

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