Couldn't decide whether to use windowWidth or frameWidth.

This commit is contained in:
Sandy Noble 2016-01-26 23:15:21 +00:00
parent 2fbe578954
commit 6f6755f231

View File

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