use of net.osmand.core.jni.AreaI in project OsmAnd-tools by osmandapp.
the class QtCorePanel method reshape.
@Override
public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) {
mapRenderer.setViewport(new AreaI(0, 0, height, width));
mapRenderer.setWindowSize(new PointI(width, height));
if (!mapRenderer.isRenderingInitialized()) {
if (!mapRenderer.initializeRendering())
System.err.println("Failed to initialize rendering");
}
}