Skip to content

Commit

Permalink
Merge pull request #71 from leolannenmaki/master
Browse files Browse the repository at this point in the history
Use thickness property instead of hardcoded 0.1 in lineStyle calls.
  • Loading branch information
deltaluca committed Oct 26, 2013
2 parents 8fae634 + f197c76 commit b1bc4b4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cx-src/nape/util/ShapeDebug.cx
Expand Up @@ -73,7 +73,7 @@ $(import);
)
var g = pr(inner_zn).graphics;

g.lineStyle(0.1,colour&0xffffff,1);
g.lineStyle(thickness,colour&0xffffff,1);
if(pr(inner).xnull) {
g.moveTo(start.x,start.y);
g.lineTo(end.x,end.y);
Expand Down Expand Up @@ -104,7 +104,7 @@ $(import);
)
var g = pr(inner_zn).graphics;

g.lineStyle(0.1,colour&0xffffff,1);
g.lineStyle(thickness,colour&0xffffff,1);
if(pr(inner).xnull) {
g.moveTo(start.x,start.y);
g.curveTo(control.x,control.y,end.x,end.y);
Expand Down Expand Up @@ -137,7 +137,7 @@ $(import);
)
var g = pr(inner_zn).graphics;

g.lineStyle(0.1,colour&0xffffff,1);
g.lineStyle(thickness,colour&0xffffff,1);
if(pr(inner).xnull) {
g.drawCircle(position.x,position.y,radius);

Expand All @@ -159,7 +159,7 @@ $(import);
DEBUG(if(aabb==null) throw "Error: drawAABB::aabb cannot be null";)
var g = pr(inner_zn).graphics;

g.lineStyle(0.1,colour&0xffffff,1);
g.lineStyle(thickness,colour&0xffffff,1);
if(pr(inner).xnull)
g.drawRect(aabb.x,aabb.y,aabb.width,aabb.height);
else {
Expand Down Expand Up @@ -244,7 +244,7 @@ $(import);
DEBUG(if(polygon==null) throw "Error: Cannot draw null polygon";)

var g = pr(inner_zn).graphics;
g.lineStyle(0.1,colour&0xffffff,1.0);
g.lineStyle(thickness,colour&0xffffff,1.0);
var fst = null;
var fsttime = true;
if(pr(inner).xnull) {
Expand Down

0 comments on commit b1bc4b4

Please sign in to comment.