"Drew Haninger" <[EMAIL PROTECTED]> a �crit dans le message de news: 
[EMAIL PROTECTED]
> here's the whole function,  just notice the code that is commented...
>
> ot_FntDefineFont    replaces   FntDefineFont
>
> (ot stands for OliveTree)
>
> /***********************************************************************
> *
> *   ot_FntDefineFont
> *
> **********************************************************************/
> extern  void  ot_FntDefineFont(fontID  MyId,  FontPtr  pFontTypeInst);
>        void  ot_FntDefineFont(fontID  MyId,  FontPtr  pFontTypeInst)
> {
>
>
>   //ULong     before_freeBytes = 0;
>   //ULong     after_freeBytes = 0;
>   //ULong     maxChunk = 0;
>
> //*************************************************
> // causes CRASHES in the sumulators, but not the actual devices.
> // BUT necessary for the Palm T5, else it looses much memory
> //*************************************************
>   if( pCBibleDesktopInst->pOTHWInst->IsOS50())
>       FntDefineFont(MyId,  0);
>
>   // get the memory before
>   //MemHeapFreeBytes (0, &before_freeBytes, &maxChunk);
>
> //*************************************************
>    //  set the font
> //*************************************************
>   FntDefineFont(MyId,  pFontTypeInst);
>
>
>   // get the memory after
>   //MemHeapFreeBytes (0, &after_freeBytes, &maxChunk);
>
> // loosing about 2/3 of the size of the font passed in on a T5
>   //ULong  MemoryLoss = before_freeBytes - after_freeBytes;
>
> }
>
Thanks for the code.

You only check for OS5. Is'nt the probleme only related to the T5 ??
Did you noticed this probleme on other devices then the T5 ?

-- 
Regis St-Gelais
www.laubrass.com 



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

Reply via email to