зеркало из https://github.com/mozilla/pjs.git
Bug 291190 - Older SDKs missing FixedToFloat/FloatToFixed. r=pedemonte, a=asa
This commit is contained in:
Родитель
1e1e451871
Коммит
b674aa6c91
|
@ -39,6 +39,14 @@
|
|||
#include "cairoint.h"
|
||||
#include <iconv.h>
|
||||
|
||||
// FixedToFloat/FloatToFixed are 10.3 SDK items - include definitions
|
||||
// here so we can use older SDKs
|
||||
#ifndef FixedToFloat
|
||||
#define fixed1 ((Fixed) 0x00010000L)
|
||||
#define FixedToFloat(a) ((float)(a) / fixed1)
|
||||
#define FloatToFixed(a) ((Fixed)((float)(a) * fixed1))
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
cairo_font_t base;
|
||||
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Загрузка…
Ссылка в новой задаче