view: move tile size definition to MapLoader

We also remove the unneeded redrawPending flag.
This commit is contained in:
Matthias Schiffer 2018-10-31 12:54:49 +01:00
parent 6370b60189
commit 272e37a408
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
2 changed files with 1 additions and 5 deletions

View file

@ -45,7 +45,7 @@ function mkTileMap(
gl: WebGLRenderingContext,
tiles: Map<string, HTMLImageElement>,
): TileMap {
const tileSize = MapView.tileSize;
const tileSize = 32;
const canvasDim = nextPowerOf2(Math.sqrt(tiles.size));
const canvasSize = canvasDim * tileSize;