FX - fix rect size

This commit is contained in:
Jakub Valtar
2015-08-18 16:47:38 -04:00
parent 810045f3cc
commit ca0f78de4c

View File

@@ -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);
}