perspective: use viewport offset in get2DGeometry
This commit is contained in:
@@ -508,8 +508,8 @@ public class Perspective
|
||||
int minY = Math.min(Math.min(a.getY(), b.getY()), c.getY());
|
||||
|
||||
// For some reason, this calculation is always 4 pixels short of the actual in-client one
|
||||
int maxX = Math.max(Math.max(a.getX(), b.getX()), c.getX()) + 4;
|
||||
int maxY = Math.max(Math.max(a.getY(), b.getY()), c.getY()) + 4;
|
||||
int maxX = Math.max(Math.max(a.getX(), b.getX()), c.getX()) + client.getViewportXOffset();
|
||||
int maxY = Math.max(Math.max(a.getY(), b.getY()), c.getY()) + client.getViewportYOffset();
|
||||
|
||||
// ...and the rectangles in the fixed client are shifted 4 pixels right and down
|
||||
if (!client.isResized())
|
||||
|
||||
Reference in New Issue
Block a user