Couldn't decide whether to use windowWidth or frameWidth.
This commit is contained in:
parent
2fbe578954
commit
6f6755f231
|
@ -749,8 +749,8 @@ class DisplayMachine extends Machine
|
||||||
// scale em, danno.
|
// scale em, danno.
|
||||||
PVector scaledPos = scaleToScreen(cartesianPos);
|
PVector scaledPos = scaleToScreen(cartesianPos);
|
||||||
noStroke();
|
noStroke();
|
||||||
if ((scaledPos.x <= 0) || (scaledPos.x > displayWidth) ||
|
if ((scaledPos.x <= 0) || (scaledPos.x > windowWidth) ||
|
||||||
(scaledPos.y <= 0) || (scaledPos.y > displayHeight)) {
|
(scaledPos.y <= 0) || (scaledPos.y > windowHeight)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue