Browse Source

reduces warnings

shared-context
Andrew Corrigan 11 years ago
parent
commit
38bb65617e
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/nanovg.c

+ 3
- 3
src/nanovg.c View File

@@ -1082,7 +1082,7 @@ static void nvg__flattenPaths(struct NVGcontext* ctx, int lineCap, int lineJoin,
p0 = &pts[path->count-1];
p1 = &pts[0];
for(i = 0; i < path->count; ++i) {
float dlx0, dly0, dlx1, dly1, dmr2, scale, cross, dot, d0, d1;
float dlx0, dly0, dlx1, dly1, dmr2, scale, cross, dot;
dlx0 = p0->dy;
dly0 = -p0->dx;
dlx1 = p1->dy;
@@ -1398,7 +1398,7 @@ static int nvg__expandStrokeAndFill(struct NVGcontext* ctx, int feats, float w,
if (lineCap == NVG_BUTT) {
px = p0->x;
py = p0->y;
} else if (lineCap == NVG_SQUARE) {
} else /*if (lineCap == NVG_SQUARE)*/ {
px = p0->x - dx*w;
py = p0->y - dy*w;
}
@@ -1450,7 +1450,7 @@ static int nvg__expandStrokeAndFill(struct NVGcontext* ctx, int feats, float w,
if (lineCap == NVG_BUTT) {
px = p1->x;
py = p1->y;
} else if (lineCap == NVG_SQUARE) {
} else /*if (lineCap == NVG_SQUARE)*/ {
px = p1->x + dx*w;
py = p1->y + dy*w;
}


Loading…
Cancel
Save