diff options
author | Chia-I Wu <[email protected]> | 2010-05-31 12:38:21 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-05-31 13:28:01 +0800 |
commit | e5b5d84e8a87a5603a84f8c4625592a278bcf9af (patch) | |
tree | a5d482b763b9844676445bcaa469fb6f65bad3ee /src/gallium/state_trackers/vega/stroker.c | |
parent | a2f311530790d7499cec3ee22132d7f391c850f3 (diff) |
st/vega: Use SConscript for Windows build.
Fix several portability issues and add SConscript for Windows build.
Diffstat (limited to 'src/gallium/state_trackers/vega/stroker.c')
-rw-r--r-- | src/gallium/state_trackers/vega/stroker.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/vega/stroker.c b/src/gallium/state_trackers/vega/stroker.c index 68a52029db0..d89b6cf25cb 100644 --- a/src/gallium/state_trackers/vega/stroker.c +++ b/src/gallium/state_trackers/vega/stroker.c @@ -35,7 +35,7 @@ #include "path_utils.h" #include "polygon.h" -#include "math.h" +#include "util/u_math.h" #ifndef M_2PI #define M_2PI 6.28318530717958647692528676655900576 @@ -870,7 +870,7 @@ static VGboolean vg_stroke_outline(struct stroke_iterator *it, VGboolean cap_first, VGfloat *start_tangent) { - const int MAX_OFFSET = 16; +#define MAX_OFFSET 16 struct bezier offset_curves[MAX_OFFSET]; VGPathCommand first_element; VGfloat start[2], prev[2]; @@ -1017,6 +1017,7 @@ static VGboolean vg_stroke_outline(struct stroke_iterator *it, #endif return VG_FALSE; } +#undef MAX_OFFSET } static void stroker_process_subpath(struct stroker *stroker) |