MapDatabase tile clipping: convert some local variables #518
This commit is contained in:
parent
345b57c57a
commit
c7eaaa9100
@ -409,9 +409,7 @@ public class MapDatabase implements ITileDataSource {
|
|||||||
// private long mCurrentRow;
|
// private long mCurrentRow;
|
||||||
// private long mCurrentCol;
|
// private long mCurrentCol;
|
||||||
|
|
||||||
private int xmin, ymin, xmax, ymax, xSmin, ySmin, xSmax, ySmax;
|
private void setTileClipping(QueryParameters queryParameters, long mCurrentRow, long mCurrentCol) {
|
||||||
|
|
||||||
private synchronized void setTileClipping(QueryParameters queryParameters, long mCurrentRow, long mCurrentCol) {
|
|
||||||
long numRows = queryParameters.toBlockY - queryParameters.fromBlockY;
|
long numRows = queryParameters.toBlockY - queryParameters.fromBlockY;
|
||||||
long numCols = queryParameters.toBlockX - queryParameters.fromBlockX;
|
long numCols = queryParameters.toBlockX - queryParameters.fromBlockX;
|
||||||
|
|
||||||
@ -424,10 +422,15 @@ public class MapDatabase implements ITileDataSource {
|
|||||||
else
|
else
|
||||||
buffer = (int) (16 * CanvasAdapter.getScale() + 0.5f);
|
buffer = (int) (16 * CanvasAdapter.getScale() + 0.5f);
|
||||||
|
|
||||||
xmin = ymin = -buffer;
|
int xmin = -buffer;
|
||||||
xmax = ymax = Tile.SIZE + buffer;
|
int ymin = -buffer;
|
||||||
xSmin = ySmin = 0;
|
int xmax = Tile.SIZE + buffer;
|
||||||
xSmax = ySmax = Tile.SIZE;
|
int ymax = Tile.SIZE + buffer;
|
||||||
|
|
||||||
|
int xSmin = 0;
|
||||||
|
int ySmin = 0;
|
||||||
|
int xSmax = Tile.SIZE;
|
||||||
|
int ySmax = Tile.SIZE;
|
||||||
|
|
||||||
if (numRows > 0) {
|
if (numRows > 0) {
|
||||||
int w = (int) (Tile.SIZE / (numCols + 1));
|
int w = (int) (Tile.SIZE / (numCols + 1));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user