[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ft] two puzzled function
From: |
luoyi |
Subject: |
[ft] two puzzled function |
Date: |
Fri, 19 May 2006 17:17:07 +0800 |
ftcommon.c:
*************************************************************************
void
FTDemo_Set_Preload( FTDemo_Handle* handle,
int preload )
{
handle->preload = !!preload;
}
Q1: why two '!' here ?
void
FTDemo_Set_Current_Pointsize( FTDemo_Handle* handle,
int point_size,
int res )
{
FTDemo_Set_Current_Size( handle, ( point_size * res + 36 ) / 72 );
}
Q2: what's the mean of: "( pt * res + 36 ) /72" ?
*************************************************************************
- [ft] two puzzled function,
luoyi <=