Comment #2 on issue 227 by PCanvas.setCamera() sets new Camera's bounds to Canvas bounds

Sure, I'll put some thought into it.

Also wondering if PCanvas.setBounds() is correct wrt to the bounds it sets on the camera:

public void setBounds(final int x, final int y, final int width, final int height) {
        camera.setBounds(camera.getX(), camera.getY(), width, height);
        super.setBounds(x, y, width, height);

I suppose the fundamental question is, in what cases do clients want the canvas's camera to NOT be at (0,0)? Do you know any such use cases?

Piccolo2D Developers Group:

Reply via email to