From ea1b3dbc286c019e43272762e7454bb2c3789238 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Wed, 6 Jan 2021 23:20:54 +0800 Subject: [PATCH] Without extending coords, expect an additional 1px to align --- nel/tools/3d/unbuild_elevation/unbuild_elevation.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nel/tools/3d/unbuild_elevation/unbuild_elevation.cpp b/nel/tools/3d/unbuild_elevation/unbuild_elevation.cpp index d3c15e478..656109cae 100644 --- a/nel/tools/3d/unbuild_elevation/unbuild_elevation.cpp +++ b/nel/tools/3d/unbuild_elevation/unbuild_elevation.cpp @@ -132,6 +132,12 @@ void getBitmapSize(int &w, int &h) sint32 sizeY = s_ZoneMaxY - s_ZoneMinY + 1; w = sizeX * 20; h = sizeY * 20; + + if (!s_ExtendCoords) + { + ++w; + ++h; + } } void getBitmapCoord(float &xc, float &yc, float x, float y)