view: move tile size definition to MapLoader
We also remove the unneeded redrawPending flag.
This commit is contained in:
parent
6370b60189
commit
272e37a408
2 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||
|
|
Reference in a new issue