ViewController: refactor 'setScreenSize' to 'setViewSize', 'setMapScreenCenter' to 'setMapViewCenter' (#523)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user