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 class MapApplicationAdapter extends ApplicationAdapter {
Gdx.app.postRunnable(new Runnable() {
@Override
public void run() {
map.viewport().setScreenSize(MapApplicationAdapter.this.width, MapApplicationAdapter.this.height);
map.viewport().setViewSize(MapApplicationAdapter.this.width, MapApplicationAdapter.this.height);
mapRenderer.onSurfaceChanged(MapApplicationAdapter.this.width, MapApplicationAdapter.this.height);
}
});
@@ -129,7 +129,7 @@ public class MapApplicationAdapter extends ApplicationAdapter {
int w = Gdx.graphics.getWidth();
int h = Gdx.graphics.getHeight();
map.viewport().setScreenSize(w, h);
map.viewport().setViewSize(w, h);
mapRenderer.onSurfaceCreated();
mapRenderer.onSurfaceChanged(w, h);