mirror of
https://github.com/LostArtefacts/TR2X.git
synced 2024-11-23 13:59:45 +00:00
tools: fix treemap bounding box
This commit is contained in:
parent
8f8d182e76
commit
4df50d226f
@ -466,14 +466,14 @@ class FunctionTreeGrid(Container):
|
|||||||
box = Box(
|
box = Box(
|
||||||
x1=ZERO,
|
x1=ZERO,
|
||||||
y1=ZERO,
|
y1=ZERO,
|
||||||
x2=GRID_WIDTH,
|
x2=GRID_WIDTH + GRID_SQUARE_MARGIN,
|
||||||
y2=(
|
y2=(
|
||||||
(
|
(
|
||||||
(len(all_functions) + GRID_MAX_SQUARES - 1)
|
(len(all_functions) + GRID_MAX_SQUARES - 1)
|
||||||
// GRID_MAX_SQUARES
|
// GRID_MAX_SQUARES
|
||||||
)
|
)
|
||||||
* (GRID_SQUARE_SIZE + GRID_SQUARE_MARGIN)
|
* (GRID_SQUARE_SIZE + GRID_SQUARE_MARGIN)
|
||||||
),
|
) + GRID_SQUARE_MARGIN,
|
||||||
)
|
)
|
||||||
|
|
||||||
for result in squarify(
|
for result in squarify(
|
||||||
|
Loading…
Reference in New Issue
Block a user