Module Name: xsrc Committed By: joerg Date: Sun Feb 28 22:01:26 UTC 2016
Modified Files: xsrc/external/mit/pixman/dist/pixman: pixman.h Log Message: pixman_int_to_fixed is sometimes used with negative values, so do not use left shift, but the equivalent multiplication. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 xsrc/external/mit/pixman/dist/pixman/pixman.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: xsrc/external/mit/pixman/dist/pixman/pixman.h diff -u xsrc/external/mit/pixman/dist/pixman/pixman.h:1.5 xsrc/external/mit/pixman/dist/pixman/pixman.h:1.6 --- xsrc/external/mit/pixman/dist/pixman/pixman.h:1.5 Mon Mar 17 01:24:18 2014 +++ xsrc/external/mit/pixman/dist/pixman/pixman.h Sun Feb 28 22:01:26 2016 @@ -127,7 +127,7 @@ typedef pixman_fixed_16_16_t pixman_fixe #define pixman_fixed_1_minus_e (pixman_fixed_1 - pixman_fixed_e) #define pixman_fixed_minus_1 (pixman_int_to_fixed(-1)) #define pixman_fixed_to_int(f) ((int) ((f) >> 16)) -#define pixman_int_to_fixed(i) ((pixman_fixed_t) ((i) << 16)) +#define pixman_int_to_fixed(i) ((pixman_fixed_t) ((i) * 65536)) #define pixman_fixed_to_double(f) (double) ((f) / (double) pixman_fixed_1) #define pixman_double_to_fixed(d) ((pixman_fixed_t) ((d) * 65536.0)) #define pixman_fixed_frac(f) ((f) & pixman_fixed_1_minus_e)