Skip to content

Commit

Permalink
fixes #3342 for opengl
Browse files Browse the repository at this point in the history
still not working for java2D
  • Loading branch information
ptaillandier committed May 5, 2022
1 parent 0af9ed4 commit bd8dc66
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -231,9 +231,11 @@ public void computeOffset(final Trace list) {
GamaPoint offset = list.offset;
offset.setLocation(Cast.asPoint(scope, expr.value(scope)));
if (Math.abs(offset.x) <= 1 && !containsPixels) { offset.x *= renderer.getEnvWidth(); }
if (offset.x < 0) { offset.x = renderer.getEnvWidth() - offset.x; }
if (Math.abs(offset.y) <= 1 && !containsPixels) { offset.y *= renderer.getEnvHeight(); }
if (offset.y < 0) { offset.y = renderer.getEnvHeight() - offset.y; }

//REMOVE TO FIX #3342
//if (offset.x < 0) { offset.x = renderer.getEnvWidth() - offset.x; }
//if (offset.y < 0) { offset.y = renderer.getEnvHeight() - offset.y; }

}
increaseZ(list);
Expand Down

0 comments on commit bd8dc66

Please sign in to comment.