From 6f6755f231f17c6071747602ef609dbfb23e44dd Mon Sep 17 00:00:00 2001 From: Sandy Noble Date: Tue, 26 Jan 2016 23:15:21 +0000 Subject: [PATCH] Couldn't decide whether to use windowWidth or frameWidth. --- DisplayMachine.pde | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DisplayMachine.pde b/DisplayMachine.pde index 7ec438a..1e770fc 100644 --- a/DisplayMachine.pde +++ b/DisplayMachine.pde @@ -749,8 +749,8 @@ class DisplayMachine extends Machine // scale em, danno. PVector scaledPos = scaleToScreen(cartesianPos); noStroke(); - if ((scaledPos.x <= 0) || (scaledPos.x > displayWidth) || - (scaledPos.y <= 0) || (scaledPos.y > displayHeight)) { + if ((scaledPos.x <= 0) || (scaledPos.x > windowWidth) || + (scaledPos.y <= 0) || (scaledPos.y > windowHeight)) { continue; }