unfolding icon indicating copy to clipboard operation
unfolding copied to clipboard

Resizing MaskedPGraphicsMapDisplay

Open RickWalker opened this issue 12 years ago • 0 comments

MaskedPGraphicsMapDisplay has a problem when resizing. From looking at the source, I think needs to override resize() to recreate the buffer at the new size, otherwise changing the size of the map doesn't work.

    @Override
    public void resize(float width, float height){
        super.resize(width, height);
        pg = papplet.createGraphics((int) width, (int) height, P3D);
    }

fixes it here.

RickWalker avatar Jan 17 '13 17:01 RickWalker