mirror of
https://github.com/euphy/polargraphcontroller
synced 2024-11-15 02:37:56 +01:00
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.
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user