Merge pull request #3656 from JakubValtar/fx-rect-size-fix

FX - fix rect size
This commit is contained in:
Ben Fry
2015-08-18 18:54:38 -04:00
@@ -658,8 +658,8 @@ public class PGraphicsFX2D extends PGraphics {
protected void rectImpl(float x1, float y1, float x2, float y2) {
// rect.setFrame(x1, y1, x2-x1, y2-y1);
// drawShape(rect);
if (fill) context.fillRect(x1, y1, x2, y2);
if (stroke) context.strokeRect(x1, y1, x2, y2);
if (fill) context.fillRect(x1, y1, x2 - x1, y2 - y1);
if (stroke) context.strokeRect(x1, y1, x2 - x1, y2 - y1);
}