at Peters request, I added NS_INT_PIXELS_TO_TWIPS and NS_FLOAT_PIXELS_TO_TWIPS

git-svn-id: svn://10.0.0.236/trunk@906 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
buster
1998-04-30 15:11:33 +00:00
parent d15d7a4b72
commit 130cc8acf5
2 changed files with 10 additions and 0 deletions

View File

@@ -68,4 +68,9 @@
#define NS_TO_INT_ROUND(x) ((PRInt32)floor((x) + 0.5))
#define NS_TO_INT_ROUND_EXCLUSIVE(x) ((PRInt32)floor((x) + 0.4999999999999999))
//@}
#define NS_INT_PIXELS_TO_TWIPS(pixels, factor) ((((float)pixels)*factor) + 0.4999999999999999)
#define NS_FLOAT_PIXELS_TO_TWIPS(pixels, factor) ((pixels*factor) + 0.4999999999999999)
#endif