ViewController: refactor 'setScreenSize' to 'setViewSize', 'setMapScreenCenter' to 'setMapViewCenter' (#523)

This commit is contained in:
Gustl22
2018-04-12 11:19:21 +02:00
committed by Emux
parent d036bb0bac
commit d7aad27ed8
5 changed files with 13 additions and 13 deletions

View File

@@ -76,7 +76,7 @@ public abstract class GdxMap implements ApplicationListener {
int w = Gdx.graphics.getWidth();
int h = Gdx.graphics.getHeight();
mMap.viewport().setScreenSize(w, h);
mMap.viewport().setViewSize(w, h);
mMapRenderer.onSurfaceCreated();
mMapRenderer.onSurfaceChanged(w, h);
@@ -116,7 +116,7 @@ public abstract class GdxMap implements ApplicationListener {
@Override
public void resize(int w, int h) {
mMap.viewport().setScreenSize(w, h);
mMap.viewport().setViewSize(w, h);
mMapRenderer.onSurfaceChanged(w, h);
mMap.render();
}