Without extending coords, expect an additional 1px to align

develop
kaetemi 4 years ago
parent 93ad5e469c
commit ea1b3dbc28

@ -132,6 +132,12 @@ void getBitmapSize(int &w, int &h)
sint32 sizeY = s_ZoneMaxY - s_ZoneMinY + 1; sint32 sizeY = s_ZoneMaxY - s_ZoneMinY + 1;
w = sizeX * 20; w = sizeX * 20;
h = sizeY * 20; h = sizeY * 20;
if (!s_ExtendCoords)
{
++w;
++h;
}
} }
void getBitmapCoord(float &xc, float &yc, float x, float y) void getBitmapCoord(float &xc, float &yc, float x, float y)

Loading…
Cancel
Save